From 803e8b37718b2aafd34f6acbf4ac0f443d8c5207 Mon Sep 17 00:00:00 2001 From: James Troup Date: Tue, 13 Feb 2007 13:38:23 +0000 Subject: [PATCH] [ajt] handle files without a type gracefully when building summaries --- ChangeLog | 3 +++ daklib/queue.py | 2 ++ 2 files changed, 5 insertions(+) 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. -- 2.39.5