From d9a294aee5e487c4e32f35a3a4d4f05209384547 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 15 Sep 2009 14:49:13 -0700 Subject: [PATCH] Be tolerant of missing package names in pkgorder, helps with small composes --- src/bin/pkgorder | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/pkgorder b/src/bin/pkgorder index 64a87b5e..8d3eccb0 100755 --- a/src/bin/pkgorder +++ b/src/bin/pkgorder @@ -111,7 +111,10 @@ def printMatchingPkgs(fpattern): def addPackages(ds, pkgLst): ds.initActionTs() for pkg in pkgLst: - ds.install(pattern=pkg) + try: + ds.install(pattern=pkg) + except yum.Errors.InstallError, e: + print >> sys.stderr, "Error adding %s: %s" % (pkg, e) ds.resolveDeps() processTransaction(ds)