[Reportbug-commits] [reportbug] 19/27: utils.get_dependency_info: ignore arch qualifiers
Sandro Tosi
morph at moszumanska.debian.org
Mon May 29 20:14:06 UTC 2017
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit 42ebe5a9791651fb83b3cf18eb5dd3d201941645
Author: Nis Martensen <nis.martensen at web.de>
Date: Sat Jan 28 13:53:29 2017 +0100
utils.get_dependency_info: ignore arch qualifiers
Without this, we may look for packages like 'python3:any' from the
dependencies and then not find any installed versions.
---
reportbug/utils.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/reportbug/utils.py b/reportbug/utils.py
index 3418740..e6fa716 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -661,6 +661,8 @@ def get_dependency_info(package, depends, rel="depends on"):
dependencies = []
for dep in depends:
+ # drop possible architecture qualifier from package names
+ dep = [d.split(':')[0] for d in dep]
for bit in dep:
dependencies.append((tuple(dep), bit))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list