From: Dominik Heidler Date: Wed, 18 May 2011 08:25:16 +0000 (+0200) Subject: print warning when searching in disabled repo (bnc#661976) X-Git-Tag: 1.6.4~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43be3fe21073569d0bb942ac3a669f02a4c965d1;p=platform%2Fupstream%2Fzypper.git print warning when searching in disabled repo (bnc#661976) --- diff --git a/src/Zypper.cc b/src/Zypper.cc index 8ccac52..d9b95b6 100644 --- a/src/Zypper.cc +++ b/src/Zypper.cc @@ -3659,6 +3659,12 @@ void Zypper::doCommand() std::list::const_iterator repo_it; for (repo_it = _rdata.repos.begin();repo_it != _rdata.repos.end();++repo_it){ query.addRepo( repo_it->alias()); + if (! repo_it->enabled()) + { + out().warning(boost::str(format( + _("Specified repository '%s' is disabled.")) + % (config().show_alias ? repo_it->alias() : repo_it->name()))); + } } }