From 94dcb438da061093e80d33a4f3485c45314e06ea Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Sun, 7 Oct 2012 14:02:04 +0000 Subject: [PATCH] Pass basename as title parameter to foldable_output function Signed-off-by: Luca Falavigna --- dak/examine_package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dak/examine_package.py b/dak/examine_package.py index b56785bd..eabd8850 100755 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -515,12 +515,13 @@ def get_readme_source (dsc_filename): def check_dsc (suite, dsc_filename, session = None): (dsc) = read_changes_or_dsc(suite, dsc_filename, session) + dsc_basename = os.path.basename(dsc_filename) return foldable_output(dsc_filename, "dsc", dsc, norow=True) + \ "\n" + \ - foldable_output("lintian check for %s" % dsc_filename, + foldable_output("lintian check for %s" % dsc_basename, "source-lintian", do_lintian(dsc_filename)) + \ "\n" + \ - foldable_output("README.source for %s" % dsc_filename, + foldable_output("README.source for %s" % dsc_basename, "source-readmesource", get_readme_source(dsc_filename)) def check_deb (suite, deb_filename, session = None): -- 2.39.5