]> git.decadent.org.uk Git - dak.git/commitdiff
[ajt] handle files without a type gracefully when building summaries
authorJames Troup <james@nocrew.org>
Tue, 13 Feb 2007 13:38:23 +0000 (13:38 +0000)
committerJames Troup <james@nocrew.org>
Tue, 13 Feb 2007 13:38:23 +0000 (13:38 +0000)
ChangeLog
daklib/queue.py

index 3ebd7a4903e3a273c3473642ade5336b2161d0f1..62c97be13a873ad629ba47dd391f570f6edbaf57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-02-08  Anthony Towns  <ajt@debian.org>
 
 2007-02-08  Anthony Towns  <ajt@debian.org>
 
+       * daklib/queue.py (Upload.build_summaries): handle files without a
+       'type' gracefully.
+
        * dak/generate_releases.py (print_sha256_files): new function.
        (main): use it.
 
        * dak/generate_releases.py (print_sha256_files): new function.
        (main): use it.
 
index d786d62b6efcaf7abd615e1bf776f7099fe1e1de..46343a2878c2fc2b3c9561af556116d5ca520f4f 100644 (file)
@@ -272,6 +272,8 @@ class Upload:
                 files[file]["pool name"] = utils.poolify (changes.get("source",""), files[file]["component"])
                 destination = self.Cnf["Dir::PoolRoot"] + files[file]["pool name"] + file
                 summary += file + "\n  to " + destination + "\n"
                 files[file]["pool name"] = utils.poolify (changes.get("source",""), files[file]["component"])
                 destination = self.Cnf["Dir::PoolRoot"] + files[file]["pool name"] + file
                 summary += file + "\n  to " + destination + "\n"
+               if not files[file].has_key("type"):
+                   files[file]["type"] = "unknown"
                 if files[file]["type"] in ["deb", "udeb", "dsc"]:
                     # (queue/unchecked), there we have override entries already, use them
                     # (process-new), there we dont have override entries, use the newly generated ones.
                 if files[file]["type"] in ["deb", "udeb", "dsc"]:
                     # (queue/unchecked), there we have override entries already, use them
                     # (process-new), there we dont have override entries, use the newly generated ones.