summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-07-29 17:49:36 -0400
committerHolger Levsen <holger@layer-acht.org>2016-07-29 17:49:36 -0400
commit1391976d917798646266601b06ae1c5b198d5d0a (patch)
tree32528329cd9aab3c12e428bdbd0f1891c89e1687 /bin
parentdbd43b40bed914cfe17baefea42eb21ee5190685 (diff)
downloadjenkins.debian.net-1391976d917798646266601b06ae1c5b198d5d0a.tar.xz
reproducible debian: fixup 43c5068: reproducible debian: switch directory structure for diffoscope package pages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_packages.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 38e11e09..b8b33ea7 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -449,6 +449,10 @@ def purge_old_pages():
log.info('There is no package named ' + pkg + ' from ' +
suite + '/' + arch + ' in the database. ' +
'Removing old page.')
- os.remove(RB_PKG_PATH + '/' + suite + '/' + arch + '/' +
+ try:
+ os.remove(RB_PKG_PATH + '/' + suite + '/' + arch + '/' +
page)
+ try:
+ os.remove(RB_PKG_PATH + '/' + suite + '/' + arch + '/diffoscope/' +
+ pkg + '.html')