[Piuparts-commits] [piuparts] 03/09: p-r: use get_source()
Holger Levsen
holger at moszumanska.debian.org
Sat Mar 1 21:08:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 92bea9aee48f8e32df011913bb1d31183d41e0b3
Author: Andreas Beckmann <anbe at debian.org>
Date: Fri Feb 21 00:32:15 2014 +0100
p-r: use get_source()
Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
piuparts-report.py | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/piuparts-report.py b/piuparts-report.py
index aeb2656..70d6eaf 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -897,7 +897,7 @@ class Section:
return link[:-2]
def link_to_source_summary(self, package_name):
- source_name = self._binary_db.get_control_header(package_name, "Source")
+ source_name = self._binary_db.get_source(package_name)
link = "<a href=\"%s/%s/source/%s\">%s</a>" % (
self._doc_root,
self._config.section,
@@ -1477,11 +1477,6 @@ class Section:
# START detect_well_known_errors
-def source_pkg(pkgspec, db):
- source_name = db.get_control_header(get_pkg(pkgspec), "Source")
-
- return source_name
-
def get_pkgspec(logpath):
"""For a log full file spec, return the pkgspec (<pkg>_<version)"""
return logpath.split('/')[-1]
@@ -1516,13 +1511,8 @@ def update_tpl(basedir, section, problem, failures, logdict, ftpl, ptpl, pkgsdb)
pkgspec = failure.pkgspec
bin_pkg = get_pkg(pkgspec)
+ src_pkg = pkgsdb.get_source(bin_pkg)
rdep_cnt = pkgsdb.rrdep_count(bin_pkg)
- pkg_obj = pkgsdb.get_package(bin_pkg)
-
- if not pkg_obj is None:
- src_pkg = source_pkg(pkgspec, pkgsdb)
- else:
- src_pkg = bin_pkg
if bugged_section is False and get_where(logdict[pkgspec]) != 'fail':
bugged_section = True
--
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