From: James Troup Date: Tue, 13 Feb 2007 13:38:23 +0000 (+0000) Subject: [ajt] handle files without a type gracefully when building summaries X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=803e8b37718b2aafd34f6acbf4ac0f443d8c5207;p=dak [ajt] handle files without a type gracefully when building summaries --- diff --git a/ChangeLog b/ChangeLog index 3ebd7a49..62c97be1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-02-08 Anthony Towns + * daklib/queue.py (Upload.build_summaries): handle files without a + 'type' gracefully. + * dak/generate_releases.py (print_sha256_files): new function. (main): use it. diff --git a/daklib/queue.py b/daklib/queue.py index d786d62b..46343a28 100644 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -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" + 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.