From 1c62756f56f921f60485ccfee357ecc4b222fa8b Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Tue, 20 Jan 2015 00:23:57 +0100 Subject: reproducible: common: add a package_has_notes() function --- bin/reproducible_common.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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', -- cgit v1.2.3-70-g09d2