From add6829bd0c324bcfb6cc95dabcc32be7efd5724 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 12 Aug 2012 13:56:58 +0200 Subject: [PATCH] dak/examine_package.py: use basename of .deb to get package name --- dak/examine_package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dak/examine_package.py b/dak/examine_package.py index 87c7ea9f..7db7de7d 100755 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -462,7 +462,7 @@ def do_lintian (filename): def get_copyright (deb_filename): global printed - package = re_package.sub(r'\1', deb_filename) + package = re_package.sub(r'\1', os.path.basename(deb_filename)) o = os.popen("dpkg-deb -c %s | egrep 'usr(/share)?/doc/[^/]*/copyright' | awk '{print $6}' | head -n 1" % (deb_filename)) cright = o.read()[:-1] -- 2.39.5