X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_new.py;h=f297e688e84edea3b070860fcff91ea61b3578bb;hb=62580ea9ac70928ca774f16c487d68c3cae2572e;hp=f8a6f40e86288d93c09f209b5a07aee9d95cceeb;hpb=05e76c8434279daed67dc1020fe7dc5799800616;p=dak.git diff --git a/dak/process_new.py b/dak/process_new.py index f8a6f40e..f297e688 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -811,9 +811,14 @@ def do_byhand(): answer = answer[:1].upper() if answer == 'A': - done = 1 - for f in byhand: - del files[f] + try: + check_daily_lock() + done = 1 + for f in byhand: + del files[f] + except CantGetLockError: + print "Hello? Operator! Give me the number for 911!" + print "Dinstall in the locked area, cant process packages, come back later" elif answer == 'M': Upload.do_reject(1, Options["Manual-Reject"]) os.unlink(Upload.pkg.changes_file[:-8]+".dak") @@ -927,6 +932,10 @@ def do_accept_stableupdate(suite, q): # pretty soon. print "Binary-only upload, source in new." move_to_holding(suite, queue_dir) + elif is_source_in_queue_dir(Cnf["Dir::Queue::Newstage"]): + # It's in newstage. Accept into the holding area + print "Binary-only upload, source in newstage." + move_to_holding(suite, Cnf["Dir::Queue::Newstage"]) else: # No case applicable. Bail out. Return will cause the upload # to be skipped. @@ -981,13 +990,6 @@ def do_pkg(changes_file): Upload.update_subst() files = Upload.pkg.files - try: - check_daily_lock() - except CantGetLockError: - print "Hello? Operator! Give me the number for 911!" - print "Dinstall in the locked area, cant process packages, come back later" - sys.exit(1) - try: with lock_package(Upload.pkg.changes["source"]): if not recheck(): @@ -1002,7 +1004,12 @@ def do_pkg(changes_file): (new, byhand) = check_status(files) if not new and not byhand: - do_accept() + try: + check_daily_lock() + do_accept() + except CantGetLockError: + print "Hello? Operator! Give me the number for 911!" + print "Dinstall in the locked area, cant process packages, come back later" except AlreadyLockedError, e: print "Seems to be locked by %s already, skipping..." % (e)