X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=01e95eedae6c61d39424da65cc541a1d0b62de89;hb=019a64264d405d429e04660dabc563e5f0b86ffa;hp=5b97b09e04371b683d29c6fd1e2ee4d304d2c088;hpb=e2ae71066cbb134753d7bfceb16e87d0b76dfd6e;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 5b97b09e..01e95eed 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -89,7 +89,7 @@ def init(): if Options["Help"]: usage() - Upload = daklib.queue.Queue(Cnf) + Upload = daklib.queue.Upload(Cnf) changes = Upload.pkg.changes dsc = Upload.pkg.dsc @@ -594,7 +594,7 @@ def check_files(): # Validate the component component = files[file]["component"] - component_id = database.get_component_id(component) + component_id = daklib.database.get_component_id(component) if component_id == -1: reject("file '%s' has unknown component '%s'." % (file, component)) continue @@ -609,14 +609,14 @@ def check_files(): # Determine the location location = Cnf["Dir::Pool"] - location_id = database.get_location_id (location, component, archive) + location_id = daklib.database.get_location_id (location, component, archive) if location_id == -1: reject("[INTERNAL ERROR] couldn't determine location (Component: %s, Archive: %s)" % (component, archive)) files[file]["location id"] = location_id # Check the md5sum & size against existing files (if any) files[file]["pool name"] = daklib.utils.poolify (changes["source"], files[file]["component"]) - files_id = database.get_files_id(files[file]["pool name"] + file, files[file]["size"], files[file]["md5sum"], files[file]["location id"]) + files_id = daklib.database.get_files_id(files[file]["pool name"] + file, files[file]["size"], files[file]["md5sum"], files[file]["location id"]) if files_id == -1: reject("INTERNAL ERROR, get_files_id() returned multiple matches for %s." % (file)) elif files_id == -2: @@ -1066,7 +1066,7 @@ def action (): break if queue: print "%s for %s\n%s%s" % ( - daklib.queue.upper(), ", ".join(changes["distribution"].keys()), + queue.upper(), ", ".join(changes["distribution"].keys()), reject_message, summary), queuekey = queue[0].upper() if queuekey in "RQSA":