Commit 600cebae authored by Joerg Jaspert's avatar Joerg Jaspert 🇩🇪

ask before installing security updates

helps avoiding accidental *changes commandline arguments
Signed-off-by: Joerg Jaspert's avatarJoerg Jaspert <joerg@debian.org>
parent 9d594e4c
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment