From 5147b67a4c51905b6e35927b7a022e063a730d8a Mon Sep 17 00:00:00 2001 From: James Troup Date: Sun, 30 Dec 2007 19:42:37 +0000 Subject: [PATCH] [JJ, r=JT] ignore stderr when finding copyright with dpkg-deb --- ChangeLog | 5 +++++ dak/examine_package.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 069f6743..7d6bb401 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-30 Joerg Jaspert + + * dak/examine_package.py (print_copyright): ignore stderr when + finding copyright file. + 2007-12-28 Anthony Towns * daklib/utils.py (check_signature): add NOTATION_DATA and diff --git a/dak/examine_package.py b/dak/examine_package.py index 9cf3d282..383afcec 100755 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -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() -- 2.39.5