X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=d3727216355edc92c6433a6e34794ed82f29cbbe;hb=ac1d0cb4f02b4d7584e974013f2d1204b6f280ea;hp=ca3c133e1fd23e3b62bc00fca013124e2c973064;hpb=d34d27f3196d602d8957463b4495cefbf402dc66;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index ca3c133e..d3727216 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -91,7 +91,7 @@ def get_type(f, session): # Determine what parts in a .changes are NEW -def determine_new(changes, files, warn=1): +def determine_new(changes, files, warn=1, session = None): """ Determine what parts in a C{changes} file are NEW. @@ -110,8 +110,6 @@ def determine_new(changes, files, warn=1): """ new = {} - session = DBConn().session() - # Build up a list of potentially new things for name, f in files.items(): # Skip byhand elements @@ -181,8 +179,6 @@ def determine_new(changes, files, warn=1): if new[pkg].has_key("othercomponents"): print "WARNING: %s already present in %s distribution." % (pkg, new[pkg]["othercomponents"]) - session.close() - return new ################################################################################