diff options
-rw-r--r-- | comps.py | 2 | ||||
-rw-r--r-- | findpackageset.py | 3 | ||||
-rw-r--r-- | upgrade.py | 3 |
3 files changed, 3 insertions, 5 deletions
@@ -858,7 +858,7 @@ class ComponentSet: ts = rpm.TransactionSet() how = 'i' - ts.setVSFlags(rpm.RPMVSF_NODSA|rpm.RPMVSF_NORSA) + ts.setVSFlags(~(rpm.RPMVSF_NODSA|rpm.RPMVSF_NORSA)) for p in self.packages.values(): if p.selected: diff --git a/findpackageset.py b/findpackageset.py index d2181da86..2444f2f2d 100644 --- a/findpackageset.py +++ b/findpackageset.py @@ -29,8 +29,7 @@ def addNewPackageToUpgSet(pkgDict, pkg): def findpackageset(hdrlist, dbPath='/'): ts = rpm.TransactionSet(dbPath) - ts.setVSFlags(rpm.RPMVSF_NORSA|rpm.RPMVSF_NODSA) - ts.setFlags(rpm.RPMTRANS_FLAG_NOMD5) + ts.setVSFlags(~(rpm.RPMVSF_NORSA|rpm.RPMVSF_NODSA|rpm.RPMVSF_NOMD5)) pkgDict = {} diff --git a/upgrade.py b/upgrade.py index 8da583c1f..8e80d06a9 100644 --- a/upgrade.py +++ b/upgrade.py @@ -381,8 +381,7 @@ def upgradeFindPackages(intf, method, id, instPath, dir): # open up the database to check dependencies and currently # installed packages ts = rpm.TransactionSet(instPath) - ts.setVSFlags(rpm.RPMVSF_NORSA|rpm.RPMVSF_NODSA) - ts.setFlags(rpm.RPMTRANS_FLAG_NOMD5) + ts.setVSFlags(~(rpm.RPMVSF_NORSA|rpm.RPMVSF_NODSA)) mi = ts.dbMatch() found = 0 |