390 |
try: |
try: |
391 |
os.unlink("%s/var/lib/rpm/%s" %(instPath, file)) |
os.unlink("%s/var/lib/rpm/%s" %(instPath, file)) |
392 |
except: |
except: |
393 |
pass |
log("failed to unlink /var/lib/rpm/%s" %(file,)) |
|
# log("failed to unlink /var/lib/rpm/%s" %(file,)) |
|
394 |
|
|
395 |
packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist, |
packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist, |
396 |
instPath) |
instPath) |
532 |
val = rpm.labelCompare(('21', '6.0', '11'), |
val = rpm.labelCompare(('21', '6.0', '11'), |
533 |
(epoch, h[rpm.RPMTAG_VERSION], |
(epoch, h[rpm.RPMTAG_VERSION], |
534 |
h[rpm.RPMTAG_RELEASE])) |
h[rpm.RPMTAG_RELEASE])) |
|
log("epoch: %s, version: %s, release: %s, val: %s", h[rpm.RPMTAG_EPOCH], h[rpm.RPMTAG_VERSION], h[rpm.RPMTAG_RELEASE], val) |
|
535 |
if val > 0: |
if val > 0: |
536 |
supportedUpgradeVersion = 0 |
supportedUpgradeVersion = 0 |
537 |
else: |
else: |