From 7aac641ca31157f344f6823507c6cc251958d0b5 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Wed, 5 Dec 2007 07:18:36 +0000 Subject: [PATCH] examine_package: Add --show-overrides to lintian invocation, call them udebs rather than use fancy characters, add note for exactly matching copyright files --- dak/examine_package.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dak/examine_package.py b/dak/examine_package.py index ba2855d4..c1de7576 100755 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -307,13 +307,14 @@ def print_copyright (deb_filename): copyright = o.read() copyrightmd5 = md5.md5(copyright).hexdigest() - if printed_copyrights.has_key(copyrightmd5): - print "Copyright is the same as %s.\n" % \ + if printed_copyrights.has_key(copyrightmd5) and printed_copyrights[copyrightmd5] != "%s (%s)" % (package, deb_filename): + print "NOTE: Copyright is the same as %s.\n" % \ (printed_copyrights[copyrightmd5]) else: - print copyright printed_copyrights[copyrightmd5] = "%s (%s)" % (package, deb_filename) + print copyright + def check_dsc (dsc_filename): print "---- .dsc file for %s ----" % (dsc_filename) (dsc) = read_dsc(dsc_filename) @@ -332,11 +333,11 @@ def check_deb (deb_filename): output_deb_info(deb_filename) if is_a_udeb: - print "---- skipping lintian check for µdeb ----" + print "---- skipping lintian check for udeb ----" print else: print "---- lintian check for %s ----" % (filename) - do_command ("lintian", deb_filename) + do_command ("lintian --show-overrides --color always", deb_filename) print "---- linda check for %s ----" % (filename) do_command ("linda", deb_filename) @@ -344,7 +345,7 @@ def check_deb (deb_filename): do_command ("dpkg -c", deb_filename) if is_a_udeb: - print "---- skipping copyright for µdeb ----" + print "---- skipping copyright for udeb ----" else: print "---- copyright of %s ----" % (filename) print_copyright(deb_filename) -- 2.39.5