---
cli.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/cli.py b/cli.py
index b7511f1..ffc1741 100755
--- a/cli.py
+++ b/cli.py
@@ -1409,24 +1409,33 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
"""
+
+ not_found = set()
for arg in args:
try:
ipkg = self.returnInstalledPackageByDep(arg)
except yum.Errors.YumBaseError:
ipkg = None
else:
+ self.verbose_logger.info(" %s:", arg)
self.verbose_logger.info("%s %s" % (ipkg.envra,
ipkg.ui_from_repo))
try:
pkg = self.returnPackageByDep(arg)
except yum.Errors.YumBaseError:
if not ipkg:
- self.logger.critical(_('No Package Found for %s'), arg)
+ not_found.add(arg)
else:
+ if not ipkg:
+ self.verbose_logger.info(" %s:", arg)
if not pkg.verEQ(ipkg):
self.verbose_logger.info("%s %s" % (pkg.envra,
pkg.ui_from_repo))
+ if not_found:
+ self.logger.critical(_('Error: No Packages found for:\n %s'),
+ "\n ".join(sorted(not_found)))
+
return 0, []
def cleanCli(self, userlist):
--
1.7.6.5
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel