From: Ansgar Burchardt Date: Fri, 25 Mar 2011 13:27:36 +0000 (+0000) Subject: determine_new: Really make `new' an empty dict X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=526389c8338a7e042f9ff7814cff81211d90f1dc;p=dak determine_new: Really make `new' an empty dict Signed-off-by: Ansgar Burchardt --- 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: