From 9a72422c4bfbbdc1500695def1d3a217558370de Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Fri, 3 Aug 2007 15:18:55 +0000 Subject: [PATCH] - zypper uses tribool internally. So autorefresh and enabled now have this order of preference: - cmd line value - .repo file - zypp default --- src/zypper-sources.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } -- 2.7.4