summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-01-20 00:23:57 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-15 17:37:45 +0100
commit1c62756f56f921f60485ccfee357ecc4b222fa8b (patch)
tree414ef41cbc05bed9c46062c2f76c796f26eab87e /bin
parent78e05eb8f88b7bb320c02cf7355873090d036154 (diff)
downloadjenkins.debian.net-1c62756f56f921f60485ccfee357ecc4b222fa8b.tar.xz
reproducible: common: add a package_has_notes() function
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 45779b05..7969d593 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -267,6 +267,14 @@ def bug_has_patch(bug):
return True
return False
+def package_has_notes(package):
+ # not a really serious check, it'd be better to check the yaml file
+ path = NOTES_PATH + '/' + package + '_note.html'
+ if os.access(path, os.R_OK):
+ return True
+ else:
+ return False
+
def join_status_icon(status, package=None, version=None):
table = {'reproducible' : 'weather-clear.png',
'FTBFS': 'weather-storm.png',