[Piuparts-commits] [piuparts] 02/06: p-a: also consider bugs filed against source packages
Holger Levsen
holger at layer-acht.org
Tue Dec 20 18:54:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 78c52f18ef3dbfa21cef264db7c3c3b7c7853d51
Author: Andreas Beckmann <anbe at debian.org>
Date: Tue Dec 20 16:45:34 2016 +0100
p-a: also consider bugs filed against source packages
for binary packages named equal to the source package
Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
debian/changelog | 2 ++
piuparts-analyze.py | 8 ++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index ce7d4d4..6f3a192 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
piuparts (0.74) UNRELEASED; urgency=medium
+ * piuparts-analyze.py:
+ - Also consider bugs filed against source packages.
* piuparts-reports.py:
- Mark arch:all packages with an :all suffix in package lists.
* pre_install_database-server: Use default-mysql-* from stretch onwards.
diff --git a/piuparts-analyze.py b/piuparts-analyze.py
index 940b25e..e0e6147 100644
--- a/piuparts-analyze.py
+++ b/piuparts-analyze.py
@@ -257,14 +257,14 @@ def all_piuparts_bugs():
def piuparts_bugs_in(package):
bugs = debianbts.get_bugs('package', package, 'bugs', all_piuparts_bugs(), 'archive', 'both')
- bugs.sort(reverse=True)
- return bugs
+ bugs += debianbts.get_bugs('package', 'src:' + package, 'bugs', all_piuparts_bugs(), 'archive', 'both')
+ return sorted(set(bugs), reverse=True)
def piuparts_bugs_affecting(package):
bugs = debianbts.get_bugs('affects', package, 'bugs', all_piuparts_bugs(), 'archive', 'both')
- bugs.sort(reverse=True)
- return bugs
+ bugs += debianbts.get_bugs('affects', 'src:' + package, 'bugs', all_piuparts_bugs(), 'archive', 'both')
+ return sorted(set(bugs), reverse=True)
def main():
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list