Be tolerant of missing package names in pkgorder, helps with small composes

This commit is contained in:
Jesse Keating 2009-09-15 14:49:13 -07:00
parent fe23e1f65a
commit d9a294aee5

View File

@ -111,7 +111,10 @@ def printMatchingPkgs(fpattern):
def addPackages(ds, pkgLst): def addPackages(ds, pkgLst):
ds.initActionTs() ds.initActionTs()
for pkg in pkgLst: for pkg in pkgLst:
try:
ds.install(pattern=pkg) ds.install(pattern=pkg)
except yum.Errors.InstallError, e:
print >> sys.stderr, "Error adding %s: %s" % (pkg, e)
ds.resolveDeps() ds.resolveDeps()
processTransaction(ds) processTransaction(ds)