From: Mark Hymers Date: Tue, 27 Oct 2009 11:18:12 +0000 (+0000) Subject: move check_status to daklib/queue.py X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=09ff17adf5154cd0f069c9cdae1d0b063000d749;p=dak.git move check_status to daklib/queue.py Signed-off-by: Mark Hymers --- diff --git a/dak/process_new.py b/dak/process_new.py index a10a1b09..62f30f3c 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -839,15 +839,6 @@ def do_accept(upload): # Just a normal upload, accept it... _accept(upload) -def check_status(files): - new = byhand = 0 - for f in files.keys(): - if files[f]["type"] == "byhand": - byhand = 1 - elif files[f].has_key("new"): - new = 1 - return (new, byhand) - def do_pkg(changes_file, session): u = Upload() u.pkg.load_dot_dak(changes_file) diff --git a/daklib/queue.py b/daklib/queue.py index ac3a428e..489b1ef8 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -238,6 +238,17 @@ def lookup_uid_from_fingerprint(fpr, session): ############################################################################### +def check_status(files): + new = byhand = 0 + for f in files.keys(): + if files[f]["type"] == "byhand": + byhand = 1 + elif files[f].has_key("new"): + new = 1 + return (new, byhand) + +############################################################################### + # Used by Upload.check_timestamps class TarTime(object): def __init__(self, future_cutoff, past_cutoff):