Merge pull request #127 from hiveeyes/improve-reporting

Improve reporting for the "rsync" primitive
pull/130/head
Dave Hylands 2020-03-07 13:02:15 -08:00 zatwierdzone przez GitHub
commit 749b51ae6c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -940,6 +940,7 @@ def rsync(src_dir, dst_dir, mirror, dry_run, print_func, recursed, sync_hidden):
"'{}' is a directory. Ignoring"
print_err(msg.format(src_filename, dst_filename))
else:
print_func('Checking {}'.format(dst_filename))
if stat_mtime(src_stat) > stat_mtime(dst_stat):
msg = "{} is newer than {} - copying"
print_func(msg.format(src_filename, dst_filename))