From 526389c8338a7e042f9ff7814cff81211d90f1dc Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Fri, 25 Mar 2011 13:27:36 +0000 Subject: [PATCH] determine_new: Really make `new' an empty dict Signed-off-by: Ansgar Burchardt --- daklib/queue.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daklib/queue.py b/daklib/queue.py index 0e34fece..86e768b3 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -102,7 +102,7 @@ def get_type(f, session): # Determine what parts in a .changes are NEW -def determine_new(filename, changes, files, warn=1, session = None, dsc = None, new = {}): +def determine_new(filename, changes, files, warn=1, session = None, dsc = None, new = None): """ Determine what parts in a C{changes} file are NEW. @@ -131,6 +131,8 @@ def determine_new(filename, changes, files, warn=1, session = None, dsc = None, # TODO: This should all use the database instead of parsing the changes # file again byhand = {} + if new is None: + new = {} dbchg = get_dbchange(filename, session) if dbchg is None: -- 2.39.5