]> git.decadent.org.uk Git - dak.git/commitdiff
[JJ, r=JT] ignore stderr when finding copyright with dpkg-deb
authorJames Troup <james@nocrew.org>
Sun, 30 Dec 2007 19:42:37 +0000 (19:42 +0000)
committerJames Troup <james@nocrew.org>
Sun, 30 Dec 2007 19:42:37 +0000 (19:42 +0000)
ChangeLog
dak/examine_package.py

index 069f674325ae0847090791d7dd102c2dea017dbc..7d6bb4012d2ad1967f3a2b959708544653e5aa63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-30  Joerg Jaspert  <joerg@debian.org>
+
+       * dak/examine_package.py (print_copyright): ignore stderr when
+       finding copyright file.
+
 2007-12-28  Anthony Towns  <ajt@debian.org>
 
        * daklib/utils.py (check_signature): add NOTATION_DATA and
index 9cf3d282e1bda3064d97b44347fad759cbe7b3d8..383afcecf6dfe9de585d6ce98755aaf21e41f0e5 100755 (executable)
@@ -303,7 +303,7 @@ def print_copyright (deb_filename):
         print "WARNING: wrong doc directory (expected %s, got %s)." % (package, doc_directory)
         return
 
-    o = os.popen("dpkg-deb --fsys-tarfile %s | tar xvOf - %s" % (deb_filename, copyright))
+    o = os.popen("dpkg-deb --fsys-tarfile %s | tar xvOf - %s 2>/dev/null" % (deb_filename, copyright))
     copyright = o.read()
     copyrightmd5 = md5.md5(copyright).hexdigest()