carp: Check-in [ab5590a67f]

A python graphical and terminal EncFS front-end

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Avoid pgrep output on the terminal, which was used to mount a stash
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:ab5590a67fef50ae7f2850d0cdba4cb0e44c7bf99680a740b5e1d94d0e9a5f2d
User & Date: milouse 2017-09-06 18:55:24
Context
2017-09-06
19:42
Fix broken activity.log file due to early translation check-in: f41596c5b0 user: milouse tags: trunk
18:55
Avoid pgrep output on the terminal, which was used to mount a stash check-in: ab5590a67f user: milouse tags: trunk
2017-09-04
20:22
Update translations check-in: 8e8a1bc66d user: milouse tags: trunk, v0.7.0
Changes

Changes to carp/stash_manager.py.

458
459
460
461
462
463
464
465

466
467
468
469
470
471
472

        message = CARP_POSSIBLE_INOTIFY_STATUS[main_activity].format(
            os.path.join(watch_path, filename).decode("utf-8"))
        self.log_activity(stash_name, message)
        return 1

    def inotify_push_stash(self, stash_name):
        cmd = subprocess.run(["pgrep", "-u", getpass.getuser(), "rsync"])

        if cmd.returncode == 0:
            self.log_activity(stash_name, "Sync already running")
            return True

        self.log_activity(stash_name, "Will sync NOW")
        self.push({"stash": stash_name, "test": False, "quiet": True})
        return False







|
>







458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473

        message = CARP_POSSIBLE_INOTIFY_STATUS[main_activity].format(
            os.path.join(watch_path, filename).decode("utf-8"))
        self.log_activity(stash_name, message)
        return 1

    def inotify_push_stash(self, stash_name):
        cmd = subprocess.run(["pgrep", "-u", getpass.getuser(), "rsync"],
                             stdout=subprocess.DEVNULL)
        if cmd.returncode == 0:
            self.log_activity(stash_name, "Sync already running")
            return True

        self.log_activity(stash_name, "Will sync NOW")
        self.push({"stash": stash_name, "test": False, "quiet": True})
        return False