summaryrefslogtreecommitdiffstats
path: root/scripts/pkgorder
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-06-14 22:15:19 +0000
committerJeremy Katz <katzj@redhat.com>2006-06-14 22:15:19 +0000
commit70c3736eb701cf3c266225d7d84d8679af2b28ae (patch)
tree93fdf048e6d734e90365e715eaba330f19c8d961 /scripts/pkgorder
parent0f5ba0bab9fb7c174742844ac76fb835dac38029 (diff)
downloadanaconda-70c3736eb701cf3c266225d7d84d8679af2b28ae.tar.gz
anaconda-70c3736eb701cf3c266225d7d84d8679af2b28ae.tar.xz
anaconda-70c3736eb701cf3c266225d7d84d8679af2b28ae.zip
2006-06-14 Jeremy Katz <katzj@redhat.com>
* anaconda.spec: Bump version. * scripts/pkgorder (addGroups): Only select groups which exist
Diffstat (limited to 'scripts/pkgorder')
-rwxr-xr-xscripts/pkgorder7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/pkgorder b/scripts/pkgorder
index 901081590..858a8c50b 100755
--- a/scripts/pkgorder
+++ b/scripts/pkgorder
@@ -95,8 +95,13 @@ def printMatchingPkgs(fpattern):
print mname
def addGroups(ds, groupLst):
+ def selGrp(ds, grp):
+ if not ds.comps.has_group(grp):
+ return
+ ds.selectGroup(grp)
+
ds.initActionTs()
- map(ds.selectGroup, groupLst)
+ map(ds.selectGroup, filter(lambda x: ds.comps.has_group(x), groupLst))
ds.resolveDeps()
processTransaction(ds)