Restore default behavior for newly create repos to have gpg checks enabled (bnc#71491...
authorMichael Andres <ma@suse.de>
Tue, 30 Aug 2011 09:47:21 +0000 (11:47 +0200)
committerMichael Andres <ma@suse.de>
Tue, 30 Aug 2011 09:48:00 +0000 (11:48 +0200)
src/Zypper.cc

index 316fb9f..cd63f3e 100644 (file)
@@ -2876,21 +2876,21 @@ void Zypper::doCommand()
 
     // indeterminate indicates the user has not specified the values
 
-    TriBool enabled = indeterminate;
+    TriBool enabled( indeterminate );
     if (copts.count("disable"))
       enabled = false;
 
-    TriBool autorefresh = indeterminate;
+    TriBool autorefresh( indeterminate );
     if (copts.count("refresh"))
       autorefresh = true;
 
-    TriBool keep_pkgs;
+    TriBool keep_pkgs( indeterminate );
     if (copts.count("keep-packages"))
       keep_pkgs = true;
     else if (copts.count("no-keep-packages"))
       keep_pkgs = false;
 
-    TriBool gpgCheck;
+    TriBool gpgCheck( indeterminate );
     if (copts.count("gpgcheck"))
       gpgCheck = true;
     else if (copts.count("no-gpgcheck"))