]> err.no Git - dak/commitdiff
Fix a number of bugs, some introduced long ago, some introduced yesterday.
authorJoerg Jaspert <joerg@debian.org>
Thu, 7 Aug 2008 14:15:24 +0000 (16:15 +0200)
committerJoerg Jaspert <joerg@debian.org>
Thu, 7 Aug 2008 14:15:24 +0000 (16:15 +0200)
ChangeLog
dak/cruft_report.py
dak/make_suite_file_list.py

index d32539cc02cce49f19ec796bdcb8b90a33aab4d7..d29d7f7427aa728baaca0b5694936be374ecfb76 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-08-07  Joerg Jaspert  <joerg@debian.org>
+
+       * dak/cruft_report.py (parse_nfu): call utils.warn instead of warn
+       (main): Only do the nfu stuff if nfu is a check we want to run
+       later.
+
+       * dak/make_suite_file_list.py (main): Fix a bug that has been
+       there for ages, but "just" never triggered.
+
 2008-08-07  Stephen Gran  <sgran@debian.org>
 
        * Drop use of exec to eval variable interpolation
index add44489ebb84e922b8553635d93515f39f7a921..8640ea6163e02581f86885717ce1742d61520763 100755 (executable)
@@ -167,7 +167,7 @@ def parse_nfu(architecture):
 
         f.close()
     else:
-        warn("No wanna-build dump file for architecture %s", architecture)
+        utils.warn("No wanna-build dump file for architecture %s", architecture)
     return ret
 
 ################################################################################
@@ -435,8 +435,9 @@ def main ():
                 sys.stderr.write("Gunzip invocation failed!\n%s\n" % (output))
                 sys.exit(result)
 
-            nfu_packages.setdefault(architecture,[])
-            nfu_entries = parse_nfu(architecture)
+            if "nfu" in checks:
+                nfu_packages.setdefault(architecture,[])
+                nfu_entries = parse_nfu(architecture)
 
             packages = utils.open_file(temp_filename)
             Packages = apt_pkg.ParseTagFile(packages)
index 7d10d42ba2942b91c9d15d67de58b4da7e01a21f..e36643858a1d4096effbb65e309938ec91604bdf 100755 (executable)
@@ -416,7 +416,7 @@ def main():
                  ('n', "no-delete", "Make-Suite-File-List::Options::No-Delete"),
                  ('f', "force", "Make-Suite-File-List::Options::Force"),
                  ('s', "suite", "Make-Suite-File-List::Options::Suite", "HasArg")]
-    for i in ["architecture", "component", "help", "no-delete", "suite", "force-touch" ]:
+    for i in ["architecture", "component", "help", "no-delete", "suite", "force" ]:
         if not Cnf.has_key("Make-Suite-File-List::Options::%s" % (i)):
             Cnf["Make-Suite-File-List::Options::%s" % (i)] = ""
     apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv)