]> git.decadent.org.uk Git - dak.git/commitdiff
examine_package
authorJoerg Jaspert <joerg@debian.org>
Sat, 4 Apr 2009 13:42:09 +0000 (15:42 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sat, 4 Apr 2009 13:42:09 +0000 (15:42 +0200)
docstring
"clearup" relations variable after output.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/examine_package.py

index abddf5a44bed3cd762f1786ac971f3ed5dedd87b..8d97fba00dba0ccf04b3f1161ba97d5bf909f45f 100755 (executable)
@@ -61,7 +61,7 @@ projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]))
 database.init(Cnf, projectB)
 
 printed_copyrights = {}
-package_relations = {}
+package_relations = {}           #: Store relations of packages for later output
 
 # default is to not output html.
 use_html = 0
@@ -359,6 +359,7 @@ def output_package_relations ():
         for relation in package_relations[package]:
             to_print += "%-15s: (%s) %s\n" % (package, relation, package_relations[package][relation])
 
+    package_relations={}
     foldable_output("Package relations", "relations", to_print)
 
 def output_deb_info(suite, filename, packagename):