mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
fixed the extraneous environment
Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>
This commit is contained in:
parent
a20639fb4f
commit
660a41f23e
@ -352,7 +352,6 @@ def list_target_files(config):
|
|||||||
return [(fn, os.path.getsize(os.path.join(p.path, fn))) for fn in os.listdir(p.path)]
|
return [(fn, os.path.getsize(os.path.join(p.path, fn))) for fn in os.listdir(p.path)]
|
||||||
|
|
||||||
elif p.scheme == "rsync":
|
elif p.scheme == "rsync":
|
||||||
env = load_environment()
|
|
||||||
rsync_fn_size_re = re.compile(r'.* ([^ ]*) [^ ]* [^ ]* (.*)')
|
rsync_fn_size_re = re.compile(r'.* ([^ ]*) [^ ]* [^ ]* (.*)')
|
||||||
rsync_target = '{host}:{path}'
|
rsync_target = '{host}:{path}'
|
||||||
|
|
||||||
@ -369,7 +368,7 @@ def list_target_files(config):
|
|||||||
path=target_path)
|
path=target_path)
|
||||||
]
|
]
|
||||||
|
|
||||||
code, listing = shell('check_output', rsync_command, get_env(env), trap=True)
|
code, listing = shell('check_output', rsync_command, trap=True)
|
||||||
if code == 0:
|
if code == 0:
|
||||||
for l in listing.split('\n'):
|
for l in listing.split('\n'):
|
||||||
match = rsync_fn_size_re.match(l)
|
match = rsync_fn_size_re.match(l)
|
||||||
|
Loading…
Reference in New Issue
Block a user