/[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.1 by gordonr, Sat Jul 2 06:33:16 2005 UTC Revision 1.10 by gordonr, Fri Oct 7 20:55:54 2005 UTC
# Line 49  def findRootParts(intf, id, dispatch, di Line 49  def findRootParts(intf, id, dispatch, di
49    
50      if id.rootParts is not None and len(id.rootParts) > 0:      if id.rootParts is not None and len(id.rootParts) > 0:
51          dispatch.skipStep("findinstall", skip = 0)          dispatch.skipStep("findinstall", skip = 0)
52          if productName.find("Red Hat Enterprise Linux") == -1:          if productName.find("SME Server") == -1:
53              dispatch.skipStep("installtype", skip = 1)              dispatch.skipStep("installtype", skip = 1)
54      else:      else:
55          dispatch.skipStep("findinstall", skip = 1)          dispatch.skipStep("findinstall", skip = 1)
# Line 518  def upgradeFindPackages(intf, method, id Line 518  def upgradeFindPackages(intf, method, id
518                  pass                  pass
519              sys.exit(0)              sys.exit(0)
520    
521  #    # Figure out current version for upgrade nag and for determining weird      # Figure out current version for upgrade nag and for determining weird
522  #    # upgrade cases      # upgrade cases
523  #    supportedUpgradeVersion = -1      supportedUpgradeVersion = -1
524  #    mi = ts.dbMatch('provides', 'redhat-release')      mi = ts.dbMatch('provides', 'e-smith-release')
525  #    for h in mi:      for h in mi:
526  #        if h[rpm.RPMTAG_EPOCH] is None:          if h[rpm.RPMTAG_EPOCH] is None:
527  #            epoch = None              epoch = None
528  #        else:          else:
529  #            epoch = str(h[rpm.RPMTAG_EPOCH])              epoch = str(h[rpm.RPMTAG_EPOCH])
530  #  
531  #        if supportedUpgradeVersion <= 0:          if supportedUpgradeVersion <= 0:
532  #            val = rpm.labelCompare((None, '3', '1'),              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]))
535  #            if val > 0:              if val > 0:
536  #                supportedUpgradeVersion = 0                  supportedUpgradeVersion = 0
537  #            else:              else:
538  #                supportedUpgradeVersion = 1                  supportedUpgradeVersion = 1
539  #                break                  break
540  #  
541  #    if productName.find("Red Hat Enterprise Linux") == -1:      if supportedUpgradeVersion == 0:
542  #        supportedUpgradeVersion = 1          rc = intf.messageWindow(_("Warning"),
543  #                                  _("You appear to be upgrading from a system "
544  #    if supportedUpgradeVersion == 0:                                    "which is too old to upgrade to this "
545  #        rc = intf.messageWindow(_("Warning"),                                    "version of %s.  Are you sure you wish to "
546  #                                _("You appear to be upgrading from a system "                                    "continue the upgrade "
547  #                                  "which is too old to upgrade to this "                                    "process?") %(productName,),
548  #                                  "version of %s.  Are you sure you wish to "                                  type = "yesno")
549  #                                  "continue the upgrade "          if rc == 0:
550  #                                  "process?") %(productName,),              try:
551  #                                type = "yesno")                  resetRpmdb(id.dbpath, instPath)
552  #        if rc == 0:              except Exception, e:
553  #            try:                  log("error returning rpmdb to old state: %s" %(e,))
554  #                resetRpmdb(id.dbpath, instPath)                  pass
555  #            except Exception, e:              sys.exit(0)
556  #                log("error returning rpmdb to old state: %s" %(e,))  
 #                pass  
 #            sys.exit(0)  
 #  
557    
558      # during upgrade, make sure that we only install %lang colored files      # during upgrade, make sure that we only install %lang colored files
559      # for the languages selected to be supported.      # for the languages selected to be supported.


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