From: Duncan Mac-Vicar P Date: Fri, 3 Aug 2007 15:18:55 +0000 (+0000) Subject: - zypper uses tribool internally. So autorefresh and enabled now X-Git-Tag: BASE-SuSE-Linux-10_3-Branch~198 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a72422c4bfbbdc1500695def1d3a217558370de;p=platform%2Fupstream%2Fzypper.git - zypper uses tribool internally. So autorefresh and enabled now have this order of preference: - cmd line value - .repo file - zypp default --- diff --git a/src/zypper-sources.cc b/src/zypper-sources.cc index dfb799d..f5de01f 100644 --- a/src/zypper-sources.cc +++ b/src/zypper-sources.cc @@ -366,10 +366,10 @@ int add_repo_by_url( const zypp::Url & url, const string & alias, repo.setAlias(alias.empty() ? timestamp() : alias); repo.addBaseUrl(url); - if ( enabled != indeterminate ) - repo.setEnabled(enabled); - if ( autorefresh != indeterminate ) - repo.setAutorefresh(autorefresh); + if ( !indeterminate(enabled) ) + repo.setEnabled((enabled == true)); + if ( !indeterminate(autorefresh) ) + repo.setAutorefresh((autorefresh == true)); return add_repo(repo); }