carp: Check-in [0d3f0e2062]

A python graphical and terminal EncFS front-end

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

Overview
Comment:Better rsync quiet management
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:0d3f0e2062eb60c15580edd3b32c60d3689126624132da72cacc4208cc7f5223
User & Date: milouse 2017-09-06 19:42:50
Context
2017-09-06
19:45
Bump version check-in: 1c96bc3327 user: milouse tags: trunk, v0.7.1
19:42
Better rsync quiet management check-in: 0d3f0e2062 user: milouse tags: trunk
19:42
Do not activate activity submenu if there is nothing to show check-in: 175db05de6 user: milouse tags: trunk
Changes

Changes to carp/stash_manager.py.

610
611
612
613
614
615
616



617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
            rsync_cmd.append(stash_encfs_root)
            rsync_cmd.append(stash_remote_path)

        else:
            rsync_cmd.append(stash_remote_path)
            rsync_cmd.append(stash_encfs_root)




        print(" ".join(rsync_cmd))

        err_output = None  # Default
        if "quiet" in opts and opts["quiet"] is True:
            err_output = subprocess.DEVNULL
        cmd = subprocess.run(rsync_cmd, stderr=err_output)
        if cmd.returncode != 0:
            return False
        return True

    def pull(self, opts):
        return self.rsync(opts)

    def push(self, opts):
        return self.rsync(opts, "push")







>
>
>
|

<
<
<
|









610
611
612
613
614
615
616
617
618
619
620
621



622
623
624
625
626
627
628
629
630
631
            rsync_cmd.append(stash_encfs_root)
            rsync_cmd.append(stash_remote_path)

        else:
            rsync_cmd.append(stash_remote_path)
            rsync_cmd.append(stash_encfs_root)

        if "quiet" in opts and opts["quiet"] is True:
            rsync_cmd.insert(1, "-q")
        else:
            print(" ".join(rsync_cmd))




        cmd = subprocess.run(rsync_cmd)
        if cmd.returncode != 0:
            return False
        return True

    def pull(self, opts):
        return self.rsync(opts)

    def push(self, opts):
        return self.rsync(opts, "push")