From 220997aeb8b50759f48febc424ee577eb3bce997 Mon Sep 17 00:00:00 2001 From: Jan Kupec Date: Mon, 16 Jul 2007 13:32:21 +0000 Subject: [PATCH] fixed tribool bugs --- zypp/RepoInfo.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zypp/RepoInfo.cc b/zypp/RepoInfo.cc index eafde2b..3d9a602 100644 --- a/zypp/RepoInfo.cc +++ b/zypp/RepoInfo.cc @@ -32,6 +32,7 @@ namespace zypp Impl() : enabled (indeterminate), autorefresh(indeterminate), + gpgcheck(indeterminate), type(repo::RepoType::NONE_e) {} @@ -254,15 +255,15 @@ namespace zypp 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=" <