Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
################################################################################
def do_new(upload, upload_copy, handler, session):
################################################################################
def do_new(upload, upload_copy, handler, session):
cnf = Config()
run_user_inspect_command(upload, upload_copy)
cnf = Config()
run_user_inspect_command(upload, upload_copy)
#if len(byhand) == 0 and len(missing) == 0:
# break
#if len(byhand) == 0 and len(missing) == 0:
# break
+ if missing:
+ print "NEW\n"
+
answer = "XXX"
if Options["No-Action"] or Options["Automatic"]:
answer = 'S'
answer = "XXX"
if Options["No-Action"] or Options["Automatic"]:
answer = 'S'
+ if handler.get_action():
+ print "PENDING %s\n" % handler.get_action()
+
################################################################################
################################################################################
################################################################################
################################################################################
################################################################################
################################################################################
with UploadCopy(upload) as upload_copy:
handler = PolicyQueueUploadHandler(upload, session)
if handler.get_action() is not None:
with UploadCopy(upload) as upload_copy:
handler = PolicyQueueUploadHandler(upload, session)
if handler.get_action() is not None:
+ print "PENDING %s\n" % handler.get_action()
return
do_new(upload, upload_copy, handler, session)
return
do_new(upload, upload_copy, handler, session)