/[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.5 by slords, Mon Aug 1 05:02:21 2005 UTC Revision 1.14 by slords, Wed Apr 5 21:11:51 2006 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    #    w = intf.waitWindow(_("Converting to RAID"),
42    #        _("Converting to RAID, this may take several minutes..."))
43    #
44    #    # XXX - FIXME - HACK RAID upgrade
45    #
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:
# Line 138  def mountRootPartition(intf, rootInfo, o Line 153  def mountRootPartition(intf, rootInfo, o
153              return -1              return -1
154    
155      if flags.setupFilesystems:      if flags.setupFilesystems:
         oldfsset.checkFilesystems(instPath)  
156          oldfsset.mountFilesystems(instPath, readOnly = readOnly)          oldfsset.mountFilesystems(instPath, readOnly = readOnly)
157    
158      # XXX we should properly support 'auto' at some point      # XXX we should properly support 'auto' at some point
# Line 391  def upgradeFindPackages(intf, method, id Line 405  def upgradeFindPackages(intf, method, id
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)
# Line 435  def upgradeFindPackages(intf, method, id Line 448  def upgradeFindPackages(intf, method, id
448                                        "installed arch of %s.  This is likely "                                        "installed arch of %s.  This is likely "
449                                        "to not succeed.  Are you sure you "                                        "to not succeed.  Are you sure you "
450                                        "wish to continue the upgrade process?")                                        "wish to continue the upgrade process?")
451                                      %(productName, h[rpm.RPMTAG_ARCH],                                      %(productName, myarch,
452                                        myarch),                                        h[rpm.RPMTAG_ARCH]),
453                                      type="yesno")                                      type="yesno")
454              if rc == 0:              if rc == 0:
455                  try:                  try:


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