From: Joerg Jaspert Date: Wed, 9 May 2012 18:20:53 +0000 (+0200) Subject: ask before installing security updates X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=commitdiff_plain;h=600cebaebfe47fd91d74345fc3f377a2dcc0b590 ask before installing security updates helps avoiding accidental *changes commandline arguments Signed-off-by: Joerg Jaspert --- diff --git a/dak/new_security_install.py b/dak/new_security_install.py index fb2d5ccf..3de9823e 100755 --- a/dak/new_security_install.py +++ b/dak/new_security_install.py @@ -188,9 +188,11 @@ def main(): acceptfilename="%s/COMMENTS/ACCEPT.%s_%s" % (os.path.dirname(os.path.abspath(changes[0])), dbchange.source, version) acceptfiles[acceptfilename]=1 + print "Would create %s now and then go on to accept this package, if you allow me to." % (acceptfiles.keys()) if Options["No-Action"]: - print "Would create %s now and then go on to accept this package, but No-Action is set" % (acceptfiles.keys()) sys.exit(0) + else: + raw_input("Press Enter to continue") for acceptfilename in acceptfiles.keys(): accept_file = file(acceptfilename, "w")