+ print "WARNING: wrong doc directory (expected %s, got %s)." % (package, doc_directory)
+ return
+
+ o = os.popen("ar p %s data.tar.gz | tar xzOf - %s" % (deb_filename, copyright))
+ copyright = o.read()
+ copyrightmd5 = md5.md5(copyright).hexdigest()
+
+ 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:
+ printed_copyrights[copyrightmd5] = "%s (%s)" % (package, deb_filename)