summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
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')