[Yum-devel] [PATCH 1/3] Show error message when pkgs-list is given packages, but doesn't match.

James Antill james at and.org
Tue Jan 25 15:43:52 UTC 2011


---
 output.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/output.py b/output.py
index b1d92e5..04b718b 100755
--- a/output.py
+++ b/output.py
@@ -1936,6 +1936,9 @@ to exit.
             of a package(s) instead of via. transactions. """
         tids = self.history.search(extcmds)
         limit = None
+        if extcmds and not tids:
+            self.logger.critical(_('Bad transaction IDs, or package(s), given'))
+            return 1, ['Failed history packages-list']
         if not tids:
             limit = 20
 
-- 
1.7.3.4



More information about the Yum-devel mailing list