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:
2bc4aaf
)
Return nonzero (104 - INF_CAP_NOT_FOUND) when query matches no package (bnc#719690)
author
Michael Andres
<ma@suse.de>
Tue, 10 Jan 2012 10:35:27 +0000
(11:35 +0100)
committer
Michael Andres
<ma@suse.de>
Tue, 10 Jan 2012 10:35:27 +0000
(11:35 +0100)
src/Zypper.cc
patch
|
blob
|
history
diff --git
a/src/Zypper.cc
b/src/Zypper.cc
index
259ccff
..
812cc6c
100644
(file)
--- a/
src/Zypper.cc
+++ b/
src/Zypper.cc
@@
-3730,7
+3730,10
@@
void Zypper::doCommand()
}
if (t.empty())
+ {
out().info(_("No packages found."), Out::QUIET);
+ setExitCode(ZYPPER_EXIT_INF_CAP_NOT_FOUND);
+ }
else
{
cout << endl; //! \todo out().separator()?