38 |
upgrade_remove_blacklist = () |
upgrade_remove_blacklist = () |
39 |
|
|
40 |
def findRootParts(intf, id, dispatch, dir, chroot): |
def findRootParts(intf, id, dispatch, dir, chroot): |
41 |
|
|
42 |
|
# XXX - FIXME - HACK RAID upgrade |
43 |
|
rc = iutil.execWithRedirect("/tmp/updates/raidconvert", |
44 |
|
["raidconvert"], |
45 |
|
stdin = None, |
46 |
|
stdout = "/dev/tty5", |
47 |
|
stderr = "/dev/tty5") |
48 |
|
if rc: |
49 |
|
raise SystemError |
50 |
|
|
51 |
if dir == DISPATCH_BACK: |
if dir == DISPATCH_BACK: |
52 |
return |
return |
53 |
if id.rootParts is None: |
if id.rootParts is None: |
400 |
try: |
try: |
401 |
os.unlink("%s/var/lib/rpm/%s" %(instPath, file)) |
os.unlink("%s/var/lib/rpm/%s" %(instPath, file)) |
402 |
except: |
except: |
403 |
pass |
log("failed to unlink /var/lib/rpm/%s" %(file,)) |
|
# log("failed to unlink /var/lib/rpm/%s" %(file,)) |
|
404 |
|
|
405 |
packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist, |
packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist, |
406 |
instPath) |
instPath) |
542 |
val = rpm.labelCompare(('21', '6.0', '11'), |
val = rpm.labelCompare(('21', '6.0', '11'), |
543 |
(epoch, h[rpm.RPMTAG_VERSION], |
(epoch, h[rpm.RPMTAG_VERSION], |
544 |
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) |
|
545 |
if val > 0: |
if val > 0: |
546 |
supportedUpgradeVersion = 0 |
supportedUpgradeVersion = 0 |
547 |
else: |
else: |