Project

Profile

Help

Issue #2221 » 0001-skip-rsync-if-there-are-no-files-to-sync-but-also-on.patch

jluza, 08/31/2016 04:57 PM

View differences:

server/pulp/plugins/rsync/publish.py
generated by rsync command)
:rtype: tuple
"""
if not self.file_list:
if not self.file_list and not self.delete:
return (True, _("Nothing to sync"))
if not os.path.exists(self.src_directory):
os.makedirs(self.src_directory)
output = ""
list_of_files = os.path.join(self.get_working_dir(), str(uuid.uuid4()))
open(list_of_files, 'w').write("\n".join(sorted(self.file_list)))
(3-3/3)