Be tolerant of missing package names in pkgorder, helps with small composes
This commit is contained in:
parent
fe23e1f65a
commit
d9a294aee5
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user