[dak/master 03/12] move check_status to daklib/queue.py
Signed-off-by: Mark Hymers <mhy@debian.org>
---
dak/process_new.py | 9 ---------
daklib/queue.py | 11 +++++++++++
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/dak/process_new.py b/dak/process_new.py
index a10a1b0..62f30f3 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 ac3a428..489b1ef 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):
--
1.6.3.3
Reply to: