diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-10-14 21:37:56 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-10-14 21:37:56 +0000 |
commit | d6c7b2ff74e57e44598ab7e1085b1ee60050d265 (patch) | |
tree | e6bb53206800d634ed5f8759ce7b3d586b5eac57 /comps.py | |
parent | c94c7f92ad151083038fc741368017a7a148d82b (diff) | |
download | anaconda-d6c7b2ff74e57e44598ab7e1085b1ee60050d265.tar.gz anaconda-d6c7b2ff74e57e44598ab7e1085b1ee60050d265.tar.xz anaconda-d6c7b2ff74e57e44598ab7e1085b1ee60050d265.zip |
more rpm 4.1 tweaking
Diffstat (limited to 'comps.py')
-rw-r--r-- | comps.py | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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) |