summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-10-14 21:37:56 +0000
committerJeremy Katz <katzj@redhat.com>2002-10-14 21:37:56 +0000
commitd6c7b2ff74e57e44598ab7e1085b1ee60050d265 (patch)
treee6bb53206800d634ed5f8759ce7b3d586b5eac57 /comps.py
parentc94c7f92ad151083038fc741368017a7a148d82b (diff)
downloadanaconda-d6c7b2ff74e57e44598ab7e1085b1ee60050d265.tar.gz
anaconda-d6c7b2ff74e57e44598ab7e1085b1ee60050d265.tar.xz
anaconda-d6c7b2ff74e57e44598ab7e1085b1ee60050d265.zip
more rpm 4.1 tweaking
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/comps.py b/comps.py
index d8ef69439..868b3a72a 100644
--- a/comps.py
+++ b/comps.py
@@ -847,25 +847,19 @@ class ComponentSet:
self.verifiedState = None
- if upgrade:
- db = rpm.opendb (0, instPath)
- how = 'u'
- else:
- db = None
- ts = rpm.TransactionSet()
- how = 'i'
-
checkDeps = 1
rc = []
extras = {}
while checkDeps:
if upgrade:
- ts = rpm.TransactionSet(instPath, db)
+ ts = rpm.TransactionSet(instPath, rpm.RPMVSF_NOHDRCHK)
how = 'u'
else:
ts = rpm.TransactionSet()
how = 'i'
+ ts.setVSFlags(rpm.RPMVSF_NODSA|rpm.RPMVSF_NORSA)
+
for p in self.packages.values():
if p.selected:
ts.addInstall(p.h, (p.h, p.h[rpm.RPMTAG_NAME]), how)