[Qa-jenkins-scm] [jenkins.debian.net] 04/04: reproducible Debian: don't try to delete directories when removing obsolete history pages
Holger Levsen
holger at layer-acht.org
Thu Sep 29 13:34:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 1d94871858ec182edfee5442c31ab3a32a7cc8ac
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu Sep 29 15:34:22 2016 +0200
reproducible Debian: don't try to delete directories when removing obsolete history pages
---
bin/reproducible_html_breakages.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index 788526c..9da58b1 100755
--- a/bin/reproducible_html_breakages.py
+++ b/bin/reproducible_html_breakages.py
@@ -248,10 +248,11 @@ def alien_history():
actual_packages = [x[0] for x in result]
bad_files = []
for f in sorted(os.listdir(HISTORY_PATH)):
- if f.rsplit('.', 1)[0] not in actual_packages:
- bad_files.append(os.path.join(HISTORY_PATH, f))
- os.remove(os.path.join(HISTORY_PATH, f))
- log.warning('%s should not be there so it has been removed.', os.path.join(HISTORY_PATH, f))
+ full_path = os.path.join(HISTORY_PATH, f)
+ if f.rsplit('.', 1)[0] not in actual_packages and not os.path.isdir(full_path):
+ bad_files.append(full_path)
+ os.remove(full_path)
+ log.warning('%s should not be there so it has been removed.', full_path)
return bad_files
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list