diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-03-02 12:14:44 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-02 12:14:44 +0100 |
commit | 6e8ee698df54f33e53796077ead79d6ea0d878c5 (patch) | |
tree | 4447743dd59a48e57b300fada618aa96e8340d06 | |
parent | 89c05d3c260a1c9c6f04b33b4c48391f25ffb837 (diff) | |
download | jenkins.debian.net-6e8ee698df54f33e53796077ead79d6ea0d878c5.tar.xz |
reproducible: only delete pkg file if it exists
-rwxr-xr-x | bin/reproducible_html_packages.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index 9b44cdaf..eed35894 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -208,6 +208,7 @@ 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 + '/' + - page) + pkg_file=RB_PKG_PATH + '/' + suite + '/' + arch + '/' + page + if os.path.isfile(pkg_file): + os.remove(pkg_file) |