projects
/
platform
/
upstream
/
zypper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d23142
)
print warning when searching in disabled repo (bnc#661976)
author
Dominik Heidler
<dheidler@suse.de>
Wed, 18 May 2011 08:25:16 +0000
(10:25 +0200)
committer
Dominik Heidler
<dheidler@suse.de>
Wed, 18 May 2011 08:25:16 +0000
(10:25 +0200)
src/Zypper.cc
patch
|
blob
|
history
diff --git
a/src/Zypper.cc
b/src/Zypper.cc
index
8ccac52
..
d9b95b6
100644
(file)
--- a/
src/Zypper.cc
+++ b/
src/Zypper.cc
@@
-3659,6
+3659,12
@@
void Zypper::doCommand()
std::list<zypp::RepoInfo>::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())));
+ }
}
}