]> err.no Git - dak/commitdiff
move check_status to daklib/queue.py
authorMark Hymers <mhy@debian.org>
Tue, 27 Oct 2009 11:18:12 +0000 (11:18 +0000)
committerMark Hymers <mhy@debian.org>
Tue, 27 Oct 2009 11:18:12 +0000 (11:18 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/process_new.py
daklib/queue.py

index a10a1b098a804d590d58461fa1302623fc0d37de..62f30f3c270303a7c3c81f4abc31cf95d0572349 100755 (executable)
@@ -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)
index ac3a428e3c7abe87a420db3316c9d3349615e0c4..489b1ef83788cc778b0be747b6312543b467cb0f 100755 (executable)
@@ -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):