[upgrade] don't ask confirm to replace configuration file with -v0 oldstable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 05 May 2010 18:54:04 +0200
brancholdstable
changeset 5484 95f2384b4495
parent 5469 4746c157e5e4
child 5485 4a033d7f1d93
child 5487 3ab2682a4b37
[upgrade] don't ask confirm to replace configuration file with -v0
migration.py
--- a/migration.py	Wed May 05 16:24:27 2010 +0200
+++ b/migration.py	Wed May 05 18:54:04 2010 +0200
@@ -378,7 +378,7 @@
                 if optdict.get('default') is REQUIRED:
                     self.config.input_option(optdescr[1], optdict)
         self.config.generate_config(open(newconfig, 'w'))
-        show_diffs(configfile, newconfig)
+        show_diffs(configfile, newconfig, ask_confirm=self.confirm is not yes)
         os.close(fd)
         if exists(newconfig):
             os.unlink(newconfig)