From 600cebaebfe47fd91d74345fc3f377a2dcc0b590 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Wed, 9 May 2012 20:20:53 +0200 Subject: [PATCH] ask before installing security updates helps avoiding accidental *changes commandline arguments Signed-off-by: Joerg Jaspert --- dak/new_security_install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") -- 2.39.5