/[smeserver]/cdrom.image/updates/upgrade.py
ViewVC logotype

Diff of /cdrom.image/updates/upgrade.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.3 by slords, Sun Jul 31 16:24:58 2005 UTC Revision 1.11 by gordonr, Sun Oct 9 10:44:01 2005 UTC
# Line 38  from rhpl.translate import _ Line 38  from rhpl.translate import _
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    
47        rc = iutil.execWithRedirect("/tmp/updates/raidconvert",
48                                    ["raidconvert"],
49                                    stdin = None,
50                                    stdout = "/dev/tty5",
51                                    stderr = "/dev/tty5")
52        w.pop()
53    
54        if rc:
55            raise SystemError
56    
57      if dir == DISPATCH_BACK:      if dir == DISPATCH_BACK:
58          return          return
59      if id.rootParts is None:      if id.rootParts is None:
# Line 390  def upgradeFindPackages(intf, method, id Line 406  def upgradeFindPackages(intf, method, id
406              try:              try:
407                  os.unlink("%s/var/lib/rpm/%s" %(instPath, file))                  os.unlink("%s/var/lib/rpm/%s" %(instPath, file))
408              except:              except:
409                  pass                  log("failed to unlink /var/lib/rpm/%s" %(file,))
 #                log("failed to unlink /var/lib/rpm/%s" %(file,))  
410    
411          packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist,          packages = findpackageset.findpackageset(id.grpset.hdrlist.hdlist,
412                                                   instPath)                                                   instPath)
# Line 533  def upgradeFindPackages(intf, method, id Line 548  def upgradeFindPackages(intf, method, id
548              val = rpm.labelCompare(('21', '6.0', '11'),              val = rpm.labelCompare(('21', '6.0', '11'),
549                                     (epoch, h[rpm.RPMTAG_VERSION],                                     (epoch, h[rpm.RPMTAG_VERSION],
550                                      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)  
551              if val > 0:              if val > 0:
552                  supportedUpgradeVersion = 0                  supportedUpgradeVersion = 0
553              else:              else:


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed