]> git.decadent.org.uk Git - dak.git/commitdiff
dak/examine_package.py: use basename of .deb to get package name
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 11:56:58 +0000 (13:56 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 11:56:58 +0000 (13:56 +0200)
dak/examine_package.py

index 87c7ea9fbb14ed959fe7308be787f6971278312f..7db7de7dea3d9973b99039fe13445ba98f6dec79 100755 (executable)
@@ -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]