summaryrefslogtreecommitdiffstats
path: root/scripts/pkgorder
diff options
context:
space:
mode:
authorlaroche <laroche>2001-04-30 09:54:16 +0000
committerlaroche <laroche>2001-04-30 09:54:16 +0000
commit55a95ed2c06d0d0c8bac909bf34e0243cb34a4a9 (patch)
tree5b1eb4e8b503683138147d7c993aa33e2708552c /scripts/pkgorder
parent35ae943063bdbf8257ec4c09f233de91de2b283a (diff)
downloadanaconda-55a95ed2c06d0d0c8bac909bf34e0243cb34a4a9.tar.gz
anaconda-55a95ed2c06d0d0c8bac909bf34e0243cb34a4a9.tar.xz
anaconda-55a95ed2c06d0d0c8bac909bf34e0243cb34a4a9.zip
add optional dependency checking
Diffstat (limited to 'scripts/pkgorder')
-rwxr-xr-xscripts/pkgorder9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/pkgorder b/scripts/pkgorder
index 5751d6034..8d7989b48 100755
--- a/scripts/pkgorder
+++ b/scripts/pkgorder
@@ -8,6 +8,8 @@ import rpm
import string
import comps
+depcheck = None
+
def cmpHeaderByName(h1, h2):
n1 = string.lower(h1['name'])
n2 = string.lower(h2['name'])
@@ -79,6 +81,13 @@ ts = rpm.TransactionSet(testpath, db)
for h in pkgOrder:
ts.add(h, h, 'i')
ts.order()
+if depcheck:
+ deps = ts.depcheck()
+ if deps:
+ print "unresolved dependencies:"
+ for dep in deps:
+ print dep
+
for p in ts.getKeys():
print p[1000000]
os.system ("rm -rf " + testpath)