summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-10-22 04:12:47 +0000
committerJeremy Katz <katzj@redhat.com>2002-10-22 04:12:47 +0000
commit78c4a110e0a64ff9db2de96b6228e783fef9755a (patch)
tree461ffd3abd7c4f04283b7585f11f2a81c0bd23c7 /packages.py
parent017629881d29a69da8cfd2e4107effbce6fd69be (diff)
downloadanaconda-78c4a110e0a64ff9db2de96b6228e783fef9755a.tar.gz
anaconda-78c4a110e0a64ff9db2de96b6228e783fef9755a.tar.xz
anaconda-78c4a110e0a64ff9db2de96b6228e783fef9755a.zip
didn't commit these -- we want !chainsaw ordering and we have to call ts.check before ts.order if the hdlist isn't preordered
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages.py b/packages.py
index 906c00027..515345fdc 100644
--- a/packages.py
+++ b/packages.py
@@ -627,7 +627,7 @@ def doInstall(method, id, intf, instPath):
ts = rpm.TransactionSet(instPath)
ts.setVSFlags(~rpm.RPMVSF_NORSA|~rpm.RPMVSF_NODSA)
- ts.setFlags(rpm.RPMTRANS_FLAG_NOMD5|rpm.RPMTRANS_FLAG_CHAINSAW)
+ ts.setFlags(rpm.RPMTRANS_FLAG_NOMD5|~rpm.RPMTRANS_FLAG_CHAINSAW)
total = 0
totalSize = 0
@@ -659,7 +659,9 @@ def doInstall(method, id, intf, instPath):
if not id.hdList.preordered():
log ("WARNING: not all packages in hdlist had order tag")
- ts.order()
+ # have to call ts.check before ts.order() to set up the alIndex
+ ts.check()
+ ts.order()
if upgrade:
logname = '/root/upgrade.log'