/[smeserver]/rpms/anaconda/sme8/anaconda-11.1.2.87-smeserver.patch
ViewVC logotype

Diff of /rpms/anaconda/sme8/anaconda-11.1.2.87-smeserver.patch

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

Revision 1.5 by slords, Sun Mar 16 18:25:42 2008 UTC Revision 1.10 by slords, Tue Mar 18 19:44:09 2008 UTC
# Line 172  Line 172 
172  -           else:  -           else:
173  -               devname = drive  -               devname = drive
174  -            partList.append("%s (%s)" %(desc, drive))  -            partList.append("%s (%s)" %(desc, drive))
175  +            partList.append("Upgrade existing \"%s\" system" %(desc))  +            partList.append(_("Upgrade existing \"%s\" system") %(desc))
176    
177           (button, choice) =  ListboxChoiceWindow(screen, _("System to Upgrade"),           (button, choice) =  ListboxChoiceWindow(screen, _("System to Upgrade"),
178  -                            _("One or more existing Linux installations "  -                            _("One or more existing Linux installations "
# Line 217  Line 217 
217    
218       dosync()       dosync()
219    
 --- anaconda-11.1.2.87/fedorakmod.py.sme2       2007-08-07 14:45:51.000000000 -0600  
 +++ anaconda-11.1.2.87/fedorakmod.py    2008-03-16 12:21:33.000000000 -0600  
 @@ -27,6 +27,9 @@  
  from yum.constants import TS_INSTALL  
  from yum.plugins import TYPE_CORE, PluginYumExit  
   
 +import logging  
 +log = logging.getLogger("anaconda")  
 +  
  requires_api_version = '2.4'  
  plugin_type = (TYPE_CORE,)  
   
 @@ -118,10 +121,10 @@  
          kernel = ImmutableSet(getKernelReqs(po))  
          kernelReqs = kernel.intersection(kernelProvides)  
          if len(kernel) == 0:  
 -            print "Bad kmod package '%s' does not require a kernel" % po  
 +            log.warning("Bad kmod package '%s' does not require a kernel" % po)  
              continue  
          elif len(kernelReqs) > 1:  
 -            print "Bad kmod package: Must require only one kernel"  
 +            log.warning("Bad kmod package: Must require only one kernel")  
              continue  
   
          # Figure out the real name of this kmod  
 @@ -133,7 +136,7 @@  
              # Yum bug  
              name = fakeName(po)  
          elif len(name) != 1:  
 -            print "Non compliant kmod package: %s" % po  
 +            log.warning("Non compliant kmod package: %s" % po)  
              continue  
          po.kmodName = name[0]  
   
220  --- anaconda-11.1.2.87/findpackageset.py.smeserver      2005-02-08 07:37:30.000000000 -0700  --- anaconda-11.1.2.87/findpackageset.py.smeserver      2005-02-08 07:37:30.000000000 -0700
221  +++ anaconda-11.1.2.87/findpackageset.py        2007-12-20 13:05:57.000000000 -0700  +++ anaconda-11.1.2.87/findpackageset.py        2007-12-20 13:05:57.000000000 -0700
222  @@ -108,21 +108,15 @@  @@ -108,21 +108,15 @@
# Line 422  Line 388 
388           postScripts = filter (lambda s: s.type == KS_SCRIPT_POST,           postScripts = filter (lambda s: s.type == KS_SCRIPT_POST,
389                                 self.ksdata.scripts)                                 self.ksdata.scripts)
390    
391    --- anaconda-11.1.2.87/lang-table.smeserver     2006-12-04 13:31:57.000000000 -0700
392    +++ anaconda-11.1.2.87/lang-table       2008-03-18 09:38:10.000000000 -0600
393    @@ -1,54 +1,14 @@
394    -Afrikaans      af      latarcyrheb-sun16       af_ZA.UTF-8     us      Africa/Johannesburg
395    -Arabic ar      latarcyrheb-sun16       ar_SA.UTF-8     us      Asia/Riyadh
396    -Assamese       as      none    as_IN.UTF-8     us      Asia/Calcutta
397    -Bengali        bn      none    bn_BD.UTF-8     us      Asia/Dhaka
398    -Bengali(India) bn      none    bn_IN.UTF-8     us      Asia/Calcutta
399    -Bulgarian      bg      latarcyrheb-sun16       bg_BG.UTF-8     bg      Europe/Sofia
400    -Catalan        ca      latarcyrheb-sun16       ca_ES.UTF-8     es      Europe/Madrid
401    -Chinese(Simplified)    zh_CN   none    zh_CN.UTF-8     us      Asia/Shanghai
402    -Chinese(Traditional)   zh_TW   none    zh_TW.UTF-8     us      Asia/Taipei
403    -Croatian       hr      latarcyrheb-sun16       hr_HR.UTF-8     croat   Europe/Zagreb
404    -Czech  cs      latarcyrheb-sun16       cs_CZ.UTF-8     cz-lat2 Europe/Prague
405     Danish da      latarcyrheb-sun16       da_DK.UTF-8     dk      Europe/Copenhagen
406     Dutch  nl      latarcyrheb-sun16       nl_NL.UTF-8     nl      Europe/Amsterdam
407     English        en      latarcyrheb-sun16       en_US.UTF-8     us      America/New_York
408    -Estonian       et      latarcyrheb-sun16       et_EE.UTF-8     et      Europe/Tallinn
409    -Finnish        fi      latarcyrheb-sun16       fi_FI.UTF-8     fi      Europe/Helsinki
410     French fr      latarcyrheb-sun16       fr_FR.UTF-8     fr-latin1       Europe/Paris
411     German de      latarcyrheb-sun16       de_DE.UTF-8     de-latin1-nodeadkeys    Europe/Berlin
412     Greek  el      iso07u-16       el_GR.UTF-8     gr      Europe/Athens
413    -Gujarati       gu      none    gu_IN.UTF-8     us      Asia/Calcutta
414    -Hindi  hi      none    hi_IN.UTF-8     us      Asia/Calcutta
415     Hungarian      hu      latarcyrheb-sun16       hu_HU.UTF-8     hu      Europe/Budapest
416    -Icelandic      is      latarcyrheb-sun16       is_IS.UTF-8     is-latin1       Atlantic/Reykjavik
417     Indonesian     id      latarcryheb-sun16       id_ID.UTF-8     us      Asia/Jakarta
418     Italian        it      latarcyrheb-sun16       it_IT.UTF-8     it      Europe/Rome
419    -Japanese       ja      none    ja_JP.UTF-8     jp106   Asia/Tokyo      
420    -Kannada        kn      none    kn_IN.UTF-8     us      Asia/Calcutta
421    -Korean ko      none    ko_KR.UTF-8     us      Asia/Seoul      
422    -Macedonian     mk      latarcyrheb-sun16       mk_MK.UTF-8     mk      Europe/Skopje
423    -Malay  ms      latarcyrheb-sun16       ms_MY.UTF-8     us      Asia/Kuala_Lumpur
424    -Malayalam      ml      none    ml_IN.UTF-8     us      Asia/Calcutta
425    -Marathi        mr      none    mr_IN.UTF-8     us      Asia/Calcutta
426    -Norwegian      nb      latarcyrheb-sun16       nb_NO.UTF-8     no      Europe/Oslo
427    -Northern Sotho nso     latarcyrheb-sun16       nso_ZA.UTF-8    us      Africa/Johannesburg
428    -Oriya  or      none    or_IN.UTF-8     us      Asia/Calcutta
429    -Polish pl      latarcyrheb-sun16       pl_PL.UTF-8     pl2     Europe/Warsaw
430     Portuguese     pt      latarcyrheb-sun16       pt_PT.UTF-8     pt-latin1       Europe/Lisbon
431     Portuguese(Brazilian)  pt_BR   latarcyrheb-sun16       pt_BR.UTF-8     br-abnt2        America/Sao_Paulo
432    -Punjabi        pa      none    pa_IN.UTF-8     us      Asia/Calcutta
433    -Russian        ru      latarcyrheb-sun16       ru_RU.UTF-8     ru      Europe/Moscow
434    -Serbian        sr      latarcyrheb-sun16       sr_CS.UTF-8     sr-cy   Europe/Belgrade
435    -Serbian(Latin) sr@Latn latarcyrheb-sun16       sr_CS.UTF-8@Latn        sr-cy   Europe/Belgrade
436    -Sinhala        si      none    si_LK.UTF-8     us      Asia/Colombo
437    -Slovak sk      latarcyrheb-sun16       sk_SK.UTF-8     sk-qwerty       Europe/Bratislava
438     Slovenian      sl      latarcyrheb-sun16       sl_SI.UTF-8     slovene Europe/Ljubljana
439     Spanish        es      latarcyrheb-sun16       es_ES.UTF-8     es      Europe/Madrid
440     Swedish        sv      latarcyrheb-sun16       sv_SE.UTF-8     sv-latin1       Europe/Stockholm
441    -Tamil  ta      none    ta_IN.UTF-8     us      Asia/Calcutta
442    -Telugu te      none    te_IN.UTF-8     us      Asia/Calcutta
443    -Turkish        tr      latarcyrheb-sun16       tr_TR.UTF-8     trq     Europe/Istanbul
444    -Ukrainian      uk      latarcyrheb-sun16       uk_UA.UTF-8     ua-utf  Europe/Kiev
445    -Vietnamese     vi      latarcyrheb-sun16       vi_VN.UTF-8     us      Asia/Saigon
446    -Welsh  cy      latarcyrheb-sun16       cy_GB.UTF-8     uk      Europe/London
447    -Zulu   zu      latarcyrheb-sun16       zu_ZA.UTF-8     us      Africa/Johannesburg
448    --- anaconda-11.1.2.87/language.py.smeserver    2006-10-10 11:18:09.000000000 -0600
449    +++ anaconda-11.1.2.87/language.py      2008-03-18 09:43:03.000000000 -0600
450    @@ -57,7 +57,9 @@
451                 self.current = "en_US.UTF-8"
452    
453             # English name -> native name mapping
454    -        search = ('lang-names', '/usr/lib/anaconda/lang-names')
455    +        search = ('lang-names', '/tmp/updates/lang-names',
456    +                  '/mnt/source/RHupdates/lang-names',
457    +                  '/usr/lib/anaconda/lang-names')
458             for path in search:
459                 if os.access(path, os.R_OK):
460                     f = open(path, 'r')
461    @@ -111,6 +111,8 @@
462    
463         def getNickByName (self, name):
464             for k in self.localeInfo.keys():
465    +           if k == 'C':
466    +               continue
467                 row = self.localeInfo[k]
468                 if row[0] == name:
469                     return k
470  --- anaconda-11.1.2.87/packages.py.smeserver    2007-12-20 13:41:11.000000000 -0700  --- anaconda-11.1.2.87/packages.py.smeserver    2007-12-20 13:41:11.000000000 -0700
471  +++ anaconda-11.1.2.87/packages.py      2007-12-20 13:40:41.000000000 -0700  +++ anaconda-11.1.2.87/packages.py      2007-12-20 13:40:41.000000000 -0700
472  @@ -146,6 +146,7 @@  @@ -146,6 +146,7 @@
# Line 434  Line 479 
479               anaconda.id.fsset.formatSwap(anaconda.rootPath)               anaconda.id.fsset.formatSwap(anaconda.rootPath)
480  --- anaconda-11.1.2.87/partedUtils.py.smeserver 2007-07-12 10:16:05.000000000 -0600  --- anaconda-11.1.2.87/partedUtils.py.smeserver 2007-07-12 10:16:05.000000000 -0600
481  +++ anaconda-11.1.2.87/partedUtils.py   2007-12-20 13:43:33.000000000 -0700  +++ anaconda-11.1.2.87/partedUtils.py   2007-12-20 13:43:33.000000000 -0700
482    @@ -507,8 +507,8 @@
483         return None
484    
485     def getReleaseString(mountpoint):
486    -    if os.access(mountpoint + "/etc/redhat-release", os.R_OK):
487    -        f = open(mountpoint + "/etc/redhat-release", "r")
488    +    if os.access(mountpoint + "/etc/e-smith-release", os.R_OK):
489    +        f = open(mountpoint + "/etc/e-smith-release", "r")
490             try:
491                 lines = f.readlines()
492             except IOError:
493  @@ -550,6 +550,7 @@  @@ -550,6 +550,7 @@
494           return 1           return 1
495    
496       productUpgrades = {       productUpgrades = {
497  +        "SME Server": ("Mitel Networks", "SME Server", "CentOS 5"),  +        "SME Server": ("Mitel Networks", "SME Server"),
498           "Red Hat Enterprise Linux AS": ("Red Hat Linux Advanced Server", ),           "Red Hat Enterprise Linux AS": ("Red Hat Linux Advanced Server", ),
499           "Red Hat Enterprise Linux WS": ("Red Hat Linux Advanced Workstation",),           "Red Hat Enterprise Linux WS": ("Red Hat Linux Advanced Workstation",),
500           # FIXME: this probably shouldn't be in a release...           # FIXME: this probably shouldn't be in a release...
# Line 490  Line 546 
546              else:              else:
547                  anaconda.dispatch.gotoNext()                  anaconda.dispatch.gotoNext()
548    
549  --- anaconda-11.1.2.87/lang-table.smeserver     2006-12-04 13:31:57.000000000 -0700  --- anaconda-11.1.2.87/upgrade.py.smeserver     2007-01-22 16:14:06.000000000 -0700
550  +++ anaconda-11.1.2.87/lang-table       2007-12-20 14:07:37.000000000 -0700  +++ anaconda-11.1.2.87/upgrade.py       2008-03-18 09:10:12.000000000 -0600
551  @@ -1,54 +1,8 @@  @@ -113,7 +113,7 @@
552  -Afrikaans      af      latarcyrheb-sun16       af_ZA.UTF-8     us      Africa/Johannesburg  
553  -Arabic ar      latarcyrheb-sun16       ar_SA.UTF-8     us      Asia/Riyadh       if anaconda.id.rootParts is not None and len(anaconda.id.rootParts) > 0:
554  -Assamese       as      none    as_IN.UTF-8     us      Asia/Calcutta           anaconda.dispatch.skipStep("findinstall", skip = 0)
555  -Bengali        bn      none    bn_BD.UTF-8     us      Asia/Dhaka  -        if productName.find("Red Hat Enterprise Linux") == -1:
556  -Bengali(India) bn      none    bn_IN.UTF-8     us      Asia/Calcutta  +        if productName.find("SME Server") == -1:
557  -Bulgarian      bg      latarcyrheb-sun16       bg_BG.UTF-8     bg      Europe/Sofia               anaconda.dispatch.skipStep("installtype", skip = 1)
558   Catalan        ca      latarcyrheb-sun16       ca_ES.UTF-8     es      Europe/Madrid       else:
559  -Chinese(Simplified)    zh_CN   none    zh_CN.UTF-8     us      Asia/Shanghai           anaconda.dispatch.skipStep("findinstall", skip = 1)
560  -Chinese(Traditional)   zh_TW   none    zh_TW.UTF-8     us      Asia/Taipei  --- anaconda-11.1.2.87/yuminstall.py.smeserver  2007-09-11 11:51:21.000000000 -0600
561  -Croatian       hr      latarcyrheb-sun16       hr_HR.UTF-8     croat   Europe/Zagreb  +++ anaconda-11.1.2.87/yuminstall.py    2008-03-17 08:01:27.000000000 -0600
562  -Czech  cs      latarcyrheb-sun16       cs_CZ.UTF-8     cz-lat2 Europe/Prague  @@ -1083,7 +1083,8 @@
563  -Danish da      latarcyrheb-sun16       da_DK.UTF-8     dk      Europe/Copenhagen  
564   Dutch  nl      latarcyrheb-sun16       nl_NL.UTF-8     nl      Europe/Amsterdam           if foundModule == 1:
565   English        en      latarcyrheb-sun16       en_US.UTF-8     us      America/New_York               for (n, arch, tag) in kernelVersions:
566  -Estonian       et      latarcyrheb-sun16       et_EE.UTF-8     et      Europe/Tallinn  -                recreateInitrd(n, anaconda.rootPath)
567  -Finnish        fi      latarcyrheb-sun16       fi_FI.UTF-8     fi      Europe/Helsinki  +               if os.access("/boot/System.map-%s" %(n,), os.X_OK):
568   French fr      latarcyrheb-sun16       fr_FR.UTF-8     fr-latin1       Europe/Paris  +                   recreateInitrd(n, anaconda.rootPath)
569   German de      latarcyrheb-sun16       de_DE.UTF-8     de-latin1-nodeadkeys    Europe/Berlin  
570  -Greek  el      iso07u-16       el_GR.UTF-8     gr      Europe/Athens       def selectBestKernel(self, anaconda):
571  -Gujarati       gu      none    gu_IN.UTF-8     us      Asia/Calcutta           """Find the best kernel package which is available and select it."""
572  -Hindi  hi      none    hi_IN.UTF-8     us      Asia/Calcutta  @@ -1654,10 +1654,10 @@
573  -Hungarian      hu      latarcyrheb-sun16       hu_HU.UTF-8     hu      Europe/Budapest           # Figure out current version for upgrade nag and for determining weird
574  -Icelandic      is      latarcyrheb-sun16       is_IS.UTF-8     is-latin1       Atlantic/Reykjavik           # upgrade cases
575  -Indonesian     id      latarcryheb-sun16       id_ID.UTF-8     us      Asia/Jakarta           supportedUpgradeVersion = -1
576   Italian        it      latarcyrheb-sun16       it_IT.UTF-8     it      Europe/Rome  -        for pkgtup in self.ayum.rpmdb.whatProvides('redhat-release', None, None):
577  -Japanese       ja      none    ja_JP.UTF-8     jp106   Asia/Tokyo        +        for pkgtup in self.ayum.rpmdb.whatProvides('e-smith-release', None, None):
578  -Kannada        kn      none    kn_IN.UTF-8     us      Asia/Calcutta               n, a, e, v, r = pkgtup
579  -Korean ko      none    ko_KR.UTF-8     us      Asia/Seoul                     if supportedUpgradeVersion <= 0:
580  -Macedonian     mk      latarcyrheb-sun16       mk_MK.UTF-8     mk      Europe/Skopje  -                val = rpmUtils.miscutils.compareEVR((None, '3', '1'),
581  -Malay  ms      latarcyrheb-sun16       ms_MY.UTF-8     us      Asia/Kuala_Lumpur  +                val = rpmUtils.miscutils.compareEVR(('26', '7.3', '1.el4.sme'),
582  -Malayalam      ml      none    ml_IN.UTF-8     us      Asia/Calcutta                                                       (e, v,r))
583  -Marathi        mr      none    mr_IN.UTF-8     us      Asia/Calcutta                   if val > 0:
584  -Norwegian      nb      latarcyrheb-sun16       nb_NO.UTF-8     no      Europe/Oslo                       supportedUpgradeVersion = 0
585  -Northern Sotho nso     latarcyrheb-sun16       nso_ZA.UTF-8    us      Africa/Johannesburg  @@ -1665,9 +1665,6 @@
586  -Oriya  or      none    or_IN.UTF-8     us      Asia/Calcutta                       supportedUpgradeVersion = 1
587  -Polish pl      latarcyrheb-sun16       pl_PL.UTF-8     pl2     Europe/Warsaw                       break
588  -Portuguese     pt      latarcyrheb-sun16       pt_PT.UTF-8     pt-latin1       Europe/Lisbon  
589  -Portuguese(Brazilian)  pt_BR   latarcyrheb-sun16       pt_BR.UTF-8     br-abnt2        America/Sao_Paulo  -        if productName.find("Red Hat Enterprise Linux") == -1:
590  -Punjabi        pa      none    pa_IN.UTF-8     us      Asia/Calcutta  -            supportedUpgradeVersion = 1
591  -Russian        ru      latarcyrheb-sun16       ru_RU.UTF-8     ru      Europe/Moscow  -
592  -Serbian        sr      latarcyrheb-sun16       sr_CS.UTF-8     sr-cy   Europe/Belgrade           if supportedUpgradeVersion == 0:
593  -Serbian(Latin) sr@Latn latarcyrheb-sun16       sr_CS.UTF-8@Latn        sr-cy   Europe/Belgrade               rc = anaconda.intf.messageWindow(_("Warning"),
594  -Sinhala        si      none    si_LK.UTF-8     us      Asia/Colombo                                       _("You appear to be upgrading from a system "
595  -Slovak sk      latarcyrheb-sun16       sk_SK.UTF-8     sk-qwerty       Europe/Bratislava  @@ -1681,7 +1678,7 @@
596  -Slovenian      sl      latarcyrheb-sun16       sl_SI.UTF-8     slovene Europe/Ljubljana                       try:
597   Spanish        es      latarcyrheb-sun16       es_ES.UTF-8     es      Europe/Madrid                           os.unlink("%s/var/lib/rpm/%s" %(anaconda.rootPath, rpmfile))
598   Swedish        sv      latarcyrheb-sun16       sv_SE.UTF-8     sv-latin1       Europe/Stockholm                       except:
599  -Tamil  ta      none    ta_IN.UTF-8     us      Asia/Calcutta  -                        log.info("error %s removing file: /var/lib/rpm/%s" %(e,rpmfile))
600  -Telugu te      none    te_IN.UTF-8     us      Asia/Calcutta  +                        #log.info("error %s removing file: /var/lib/rpm/%s" %(e,rpmfile))
601  -Turkish        tr      latarcyrheb-sun16       tr_TR.UTF-8     trq     Europe/Istanbul                           pass
602  -Ukrainian      uk      latarcyrheb-sun16       uk_UA.UTF-8     ua-utf  Europe/Kiev                   sys.exit(0)
603  -Vietnamese     vi      latarcyrheb-sun16       vi_VN.UTF-8     us      Asia/Saigon  
604  -Welsh  cy      latarcyrheb-sun16       cy_GB.UTF-8     uk      Europe/London  @@ -1729,7 +1730,8 @@
605  -Zulu   zu      latarcyrheb-sun16       zu_ZA.UTF-8     us      Africa/Johannesburg           # to the old method.
606             if len(self._installedDriverModules) == len(anaconda.id.extraModules):
607                 for (n, arch, tag) in self.kernelVersionList():
608    -                recreateInitrd(n, anaconda.rootPath)
609    +               if os.access("/boot/System.map-%s" %(n,), os.X_OK):
610    +                   recreateInitrd(n, anaconda.rootPath)
611             else:
612                 modulesList = filter(lambda m: m not in self._installedDriverModules, anaconda.id.extraModules)
613                 self.copyExtraModules(anaconda, modulesList)


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