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 |
|
w = intf.waitWindow(_("Converting to RAID"), |
43 |
|
_("Converting to RAID, this may take several minutes...")) |
44 |
|
|
45 |
|
# XXX - FIXME - HACK RAID upgrade |
46 |
|
rc = iutil.execWithRedirect("/tmp/updates/raidconvert", |
47 |
|
["raidconvert"], |
48 |
|
stdin = None, |
49 |
|
stdout = "/dev/tty5", |
50 |
|
stderr = "/dev/tty5") |
51 |
|
w.pop() |
52 |
|
|
53 |
|
if rc: |
54 |
|
raise SystemError |
55 |
|
|
56 |
if dir == DISPATCH_BACK: |
if dir == DISPATCH_BACK: |
57 |
return |
return |
58 |
if id.rootParts is None: |
if id.rootParts is None: |
405 |
try: |
try: |
406 |
os.unlink("%s/var/lib/rpm/%s" %(instPath, file)) |
os.unlink("%s/var/lib/rpm/%s" %(instPath, file)) |
407 |
except: |
except: |
408 |
pass |
log("failed to unlink /var/lib/rpm/%s" %(file,)) |
|
# log("failed to unlink /var/lib/rpm/%s" %(file,)) |
|
409 |
|
|
410 |
packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist, |
packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist, |
411 |
instPath) |
instPath) |
547 |
val = rpm.labelCompare(('21', '6.0', '11'), |
val = rpm.labelCompare(('21', '6.0', '11'), |
548 |
(epoch, h[rpm.RPMTAG_VERSION], |
(epoch, h[rpm.RPMTAG_VERSION], |
549 |
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) |
|
550 |
if val > 0: |
if val > 0: |
551 |
supportedUpgradeVersion = 0 |
supportedUpgradeVersion = 0 |
552 |
else: |
else: |