Issue #2221 » 0001-skip-rsync-if-there-are-no-files-to-sync-but-also-on.patch
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)))
|
- « Previous
- 1
- 2
- 3
- Next »