[Piuparts-commits] [piuparts] 01/09: p-r: use source_subdir() instead of pts_subdir()
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 f1f3702d662a479d6dfac6303b2837d32a518e2a
Author: Andreas Beckmann <anbe at debian.org>
Date: Fri Feb 21 00:22:48 2014 +0100
p-r: use source_subdir() instead of pts_subdir()
Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
piuparts-report.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/piuparts-report.py b/piuparts-report.py
index 8a5e9b6..aeb2656 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -1477,12 +1477,6 @@ class Section:
# START detect_well_known_errors
-def pts_subdir(source):
- if source[:3] == "lib":
- return source[:4]
- else:
- return source[:1]
-
def source_pkg(pkgspec, db):
source_name = db.get_control_header(get_pkg(pkgspec), "Source")
@@ -1539,7 +1533,7 @@ def update_tpl(basedir, section, problem, failures, logdict, ftpl, ptpl, pkgsdb)
'PACKAGE': bin_pkg,
'BUG': get_bug_text(logdict[pkgspec]),
'RDEPS': rdep_cnt,
- 'SDIR':pts_subdir(src_pkg),
+ 'SDIR':source_subdir(src_pkg),
'SPKG':src_pkg,
})
--
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