Author: jkupec
Date: Mon Jul 16 15:32:21 2007
New Revision: 6021
URL: http://svn.opensuse.org/viewcvs/zypp?rev=6021&view=rev
Log:
fixed tribool bugs
Modified:
trunk/libzypp/zypp/RepoInfo.cc
Modified: trunk/libzypp/zypp/RepoInfo.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoInfo.cc?rev=6021&r1=6020&r2=6021&view=diff
==============================================================================
--- trunk/libzypp/zypp/RepoInfo.cc (original)
+++ trunk/libzypp/zypp/RepoInfo.cc Mon Jul 16 15:32:21 2007
@@ -32,6 +32,7 @@
Impl()
: enabled (indeterminate),
autorefresh(indeterminate),
+ gpgcheck(indeterminate),
type(repo::RepoType::NONE_e)
{}
@@ -254,15 +255,15 @@
str << "type=" << type().asString() << endl;
- if ( enabled() != indeterminate )
+ if ( ! indeterminate(enabled()) )
str << "enabled=" << (enabled() ? "1" : "0") << endl;
- if ( autorefresh() != indeterminate )
+ if ( ! indeterminate(autorefresh()) )
str << "autorefresh=" << (autorefresh() ? "1" : "0") << endl;
- if ( autorefresh() != indeterminate )
+ if ( ! indeterminate(gpgCheck()) )
str << "gpgcheck=" << (gpgCheck() ? "1" : "0") << endl;
if ( ! (gpgKeyUrl().asString().empty()) )
str << "gpgkey=" <