]> git.decadent.org.uk Git - dak.git/commitdiff
ask before installing security updates
authorJoerg Jaspert <joerg@debian.org>
Wed, 9 May 2012 18:20:53 +0000 (20:20 +0200)
committerJoerg Jaspert <joerg@debian.org>
Wed, 9 May 2012 18:20:53 +0000 (20:20 +0200)
helps avoiding accidental *changes commandline arguments

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/new_security_install.py

index fb2d5ccff58e40b90486301e29868722569011a0..3de9823eabfb2076ced37c5c0d0aff61ad0cc778 100755 (executable)
@@ -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")