Cowboy deployed at UTC 1146 by @ballot.
``` diff --git a/lib/lp/archivepublisher/scripts/publishdistro.py b/lib/lp/archivepublisher/scripts/publishdistro.py index 754c0bf3144..ea515f17dd7 100644 --- a/lib/lp/archivepublisher/scripts/publishdistro.py +++ b/lib/lp/archivepublisher/scripts/publishdistro.py @@ -438,7 +438,10 @@ def synchronizeSecondDirectoryWithFirst(self, first_dir, second_dir): copy(str(first_dir / file), str(second_dir))
for file in files_to_delete: - os.unlink(str(second_dir / file)) + try: + os.unlink(str(second_dir / file)) + except IsADirectoryError: + pass
return bool(files_to_copy) or bool(files_to_delete) ```
Cowboy deployed at UTC 1146 by @ballot.
``` archivepublishe r/scripts/ publishdistro. py b/lib/lp/ archivepublishe r/scripts/ publishdistro. py .ea515f17dd7 100644 archivepublishe r/scripts/ publishdistro. py archivepublishe r/scripts/ publishdistro. py ndDirectoryWith First(self, first_dir, second_dir):
copy( str(first_ dir / file), str(second_dir))
diff --git a/lib/lp/
index 754c0bf3144.
--- a/lib/lp/
+++ b/lib/lp/
@@ -438,7 +438,10 @@ def synchronizeSeco
for file in files_to_delete: str(second_ dir / file)) str(second_ dir / file))
- os.unlink(
+ try:
+ os.unlink(
+ except IsADirectoryError:
+ pass
return bool(files_to_copy) or bool(files_ to_delete)
```