From 31b8f8cde543a851b5c69863c330d42805e1ec18 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Tue, 10 Jan 2012 11:35:27 +0100 Subject: [PATCH] Return nonzero (104 - INF_CAP_NOT_FOUND) when query matches no package (bnc#719690) --- src/Zypper.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Zypper.cc b/src/Zypper.cc index 259ccff..812cc6c 100644 --- 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()? -- 2.7.4