/[smeserver]/rpms/anaconda/sme7/smeserver.patch
ViewVC logotype

Annotation of /rpms/anaconda/sme7/smeserver.patch

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


Revision 1.4 - (hide annotations) (download)
Tue Mar 18 16:38:16 2008 UTC (16 years, 8 months ago) by slords
Branch: MAIN
Changes since 1.3: +1 -1 lines
Fix Portugues

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/bootloader.py mezzanine_patched_anaconda-10.1.1.37/bootloader.py
2     --- anaconda-10.1.1.37/bootloader.py 2005-04-22 22:06:17.000000000 +1000
3     +++ mezzanine_patched_anaconda-10.1.1.37/bootloader.py 2006-04-06 06:43:38.459411580 +1000
4     @@ -185,11 +185,6 @@
5     except BootyNoKernelWarning:
6     if not justConfigFile:
7     w.pop()
8     - if intf:
9     - intf.messageWindow(_("Warning"),
10     - _("No kernel packages were installed on your "
11     - "system. Your boot loader configuration "
12     - "will not be changed."))
13     dosync()
14    
15     # note that this function no longer actually creates an initrd.
16     diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/findpackageset.py mezzanine_patched_anaconda-10.1.1.37/findpackageset.py
17     --- anaconda-10.1.1.37/findpackageset.py 2005-02-08 11:42:45.000000000 +1100
18     +++ mezzanine_patched_anaconda-10.1.1.37/findpackageset.py 2006-04-06 06:44:04.715849054 +1000
19     @@ -108,21 +108,15 @@
20     # loop through packages and find ones which are a newer
21     # version than what we have
22     for ( name, arch ) in instDict.keys():
23     - if ( name, arch ) in availDict.keys():
24     - # Exact arch upgrade
25     - h = instDict[(name, arch)]
26     - pkg = availDict[(name,arch)]
27     - comparePackageForUpgrade(updDict, h, pkg)
28     - else:
29     - # See if we have a better arch than that installed
30     - if name in availNames.keys():
31     - bestarch = findBestArch(availNames[name])
32     - if not bestarch:
33     - continue
34     - if availDict.has_key((name,bestarch)):
35     - h = instDict[(name,arch)]
36     - pkg = availDict[(name,bestarch)]
37     - comparePackageForUpgrade(updDict, h, pkg)
38     + # See if we have a better arch than that installed
39     + if name in availNames.keys():
40     + bestarch = findBestArch(availNames[name])
41     + if not bestarch:
42     + continue
43     + if availDict.has_key((name,bestarch)):
44     + h = instDict[(name,arch)]
45     + pkg = availDict[(name,bestarch)]
46     + comparePackageForUpgrade(updDict, h, pkg)
47    
48     # handle obsoletes
49     for pkg in hdlist:
50     diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/instdata.py mezzanine_patched_anaconda-10.1.1.37/instdata.py
51     --- anaconda-10.1.1.37/instdata.py 2004-08-25 23:12:10.000000000 +1000
52     +++ mezzanine_patched_anaconda-10.1.1.37/instdata.py 2006-04-06 06:44:44.401953223 +1000
53 slords 1.2 @@ -116,10 +116,7 @@
54 slords 1.1
55     def write(self, instPath):
56     self.langSupport.write (instPath)
57     -
58     - if not self.isHeadless:
59     - self.keyboard.write (instPath)
60     -
61     + self.keyboard.write (instPath)
62     self.timezone.write (instPath)
63     self.auth.write (instPath)
64     self.firewall.write (instPath)
65 slords 1.2 @@ -172,8 +169,8 @@
66 slords 1.1
67     self.instLanguage.writeKS(f)
68     self.langSupport.writeKS(f)
69     + self.keyboard.writeKS(f)
70     if not self.isHeadless:
71     - self.keyboard.writeKS(f)
72     self.xsetup.writeKS(f, self.desktop)
73     self.network.writeKS(f)
74     self.zfcp.writeKS(f)
75     diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/kickstart.py mezzanine_patched_anaconda-10.1.1.37/kickstart.py
76     --- anaconda-10.1.1.37/kickstart.py 2006-04-06 06:59:28.404442287 +1000
77     +++ mezzanine_patched_anaconda-10.1.1.37/kickstart.py 2006-04-06 06:45:23.609141002 +1000
78     @@ -99,6 +99,17 @@
79     name = "kickstart"
80    
81     def postAction(self, rootPath, serial, intf):
82     + win = intf.waitWindow(_("Post Install Script"),
83     + _("The post installation script is running..."))
84     +
85     + script = ( "/sbin/syslogd &\n"
86     + "sleep 2\n"
87     + "/sbin/e-smith/signal-event post-install\n" )
88     + s = Script(script, interp="/bin/sh", inChroot=1)
89     + log("%s", s)
90     + s.run(rootPath, serial)
91     + win.pop()
92     +
93     log("Running kickstart %%post script(s)")
94     for script in self.postScripts:
95     script.run(rootPath, serial)
96 slords 1.3 --- anaconda-10.1.1.81/lang-table.sme 2004-10-25 06:38:22.000000000 -0600
97     +++ anaconda-10.1.1.81/lang-table 2008-03-07 13:34:48.000000000 -0700
98     @@ -1,41 +1,11 @@
99 slords 1.1 -Arabic ar none ar_SA.UTF-8 us Asia/Riyadh ar_SA.UTF-8
100     -Bengali bn none bn_BD.UTF-8 us Asia/Dhaka bn_BD.UTF-8
101     -Bengali(India) bn none bn_IN.UTF-8 us Asia/Calcutta bn_IN.UTF-8
102     -Bulgarian bg latarcyrheb-sun16 bg_BG.UTF-8 bg Europe/Sofia bg_BG.UTF-8
103     -Catalan ca latarcyrheb-sun16 ca_ES.UTF-8 es Europe/Madrid es_ES.UTF-8
104     -Chinese(Simplified) zh_CN bterm zh_CN.UTF-8 us Asia/Shanghai zh_CN.UTF-8
105     -Chinese(Traditional) zh_TW bterm zh_TW.UTF-8 us Asia/Taipei zh_TW.UTF-8
106     -Croatian hr latarcyrheb-sun16 hr_HR.UTF-8 croat Europe/Zagreb hr_HR.UTF-8
107     -Czech cs latarcyrheb-sun16 cs_CZ.UTF-8 cz-lat2 Europe/Prague cs_CZ.UTF-8
108     -Danish da latarcyrheb-sun16 da_DK.UTF-8 dk Europe/Copenhagen da_DK.UTF-8
109     -Dutch nl latarcyrheb-sun16 nl_NL.UTF-8 nl Europe/Amsterdam nl_NL.UTF-8
110 slords 1.3 +Dansk da latarcyrheb-sun16 da_DK.UTF-8 dk Europe/Copenhagen da_DK.UTF-8
111 slords 1.1 +Deutsch de latarcyrheb-sun16 de_DE.UTF-8 de-latin1-nodeadkeys Europe/Berlin de_DE.UTF-8
112     English en latarcyrheb-sun16 en_US.UTF-8 us America/New_York en_US.UTF-8
113     -Estonian et latarcyrheb-sun16 et_EE.UTF-8 et Europe/Tallinn et_EE.UTF-8
114     -Finnish fi latarcyrheb-sun16 fi_FI.UTF-8 fi Europe/Helsinki fi_FI.UTF-8
115     -French fr latarcyrheb-sun16 fr_FR.UTF-8 fr-latin1 Europe/Paris fr_FR.UTF-8
116     -German de latarcyrheb-sun16 de_DE.UTF-8 de-latin1-nodeadkeys Europe/Berlin de_DE.UTF-8
117     -Gujarati gu none gu_IN.UTF-8 us Asia/Calcutta gu_IN.UTF-8
118     -Hindi hi none hi_IN.UTF-8 us Asia/Calcutta hi_IN.UTF-8
119     -Hungarian hu latarcyrheb-sun16 hu_HU.UTF-8 hu Europe/Budapest hu_HU.UTF-8
120     -Icelandic is latarcyrheb-sun16 is_IS.UTF-8 is-latin1 Atlantic/Reykjavik is_IS.UTF-8
121     -Italian it latarcyrheb-sun16 it_IT.UTF-8 it Europe/Rome it_IT.UTF-8
122     -Japanese ja bterm ja_JP.UTF-8 jp106 Asia/Tokyo ja_JP.UTF-8
123     -Korean ko bterm ko_KR.UTF-8 us Asia/Seoul ko_KR.UTF-8
124     -Macedonian mk latarcyrheb-sun16 mk_MK.UTF-8 mk Europe/Skopje mk_MK.UTF-8
125     -Malay ms latarcyrheb-sun16 ms_MY.UTF-8 us Asia/Kuala_Lumpur ms_MY.UTF-8
126     -Norwegian nb latarcyrheb-sun16 nb_NO.UTF-8 no Europe/Oslo nb_NO.UTF-8
127     -Persian fa none fa_IR.UTF-8 us Asia/Tehran fa_IR.UTF-8
128     -Polish pl latarcyrheb-sun16 pl_PL.UTF-8 pl Europe/Warsaw pl_PL.UTF-8
129     -Portuguese pt latarcyrheb-sun16 pt_PT.UTF-8 pt-latin1 Europe/Lisbon pt_PT.UTF-8
130     -Portuguese(Brazilian) pt_BR latarcyrheb-sun16 pt_BR.UTF-8 br-abnt2 America/Sao_Paulo pt_BR.UTF-8
131     -Punjabi pa none pa_IN.UTF-8 us Asia/Calcutta pa_IN.UTF-8
132     -Russian ru latarcyrheb-sun16 ru_RU.UTF-8 ru Europe/Moscow ru_RU.UTF-8
133     -Slovenian sl latarcyrheb-sun16 sl_SI.UTF-8 slovene Europe/Ljubljana sl_SI.UTF-8
134     -Spanish es latarcyrheb-sun16 es_ES.UTF-8 es Europe/Madrid es_ES.UTF-8
135     -Swedish sv latarcyrheb-sun16 sv_SE.UTF-8 sv-latin1 Europe/Stockholm sv_SE.UTF-8
136     -Tamil ta none ta_IN.UTF-8 us Asia/Calcutta ta_IN.UTF-8
137     -Turkish tr latarcyrheb-sun16 tr_TR.UTF-8 trq Europe/Istanbul tr_TR.UTF-8
138     -Ukrainian uk latarcyrheb-sun16 uk_UA.UTF-8 ua-utf Europe/Kiev uk_UA.UTF-8
139     -Vietnamese vi latarcyrheb-sun16 vi_VN.UTF-8 us Asia/Saigon vi_VN.UTF-8
140     -Welsh cy latarcyrheb-sun16 cy_GB.UTF-8 uk Europe/London cy_GB.UTF-8
141     -Zulu zu latarcyrheb-sun16 zu_ZA.UTF-8 us Africa/Johannesburg zu_ZA.UTF-8
142     +Español es latarcyrheb-sun16 es_ES.UTF-8 es Europe/Madrid es_ES.UTF-8
143     +Français fr latarcyrheb-sun16 fr_FR.UTF-8 fr-latin1 Europe/Paris fr_FR.UTF-8
144     +Italiano it latarcyrheb-sun16 it_IT.UTF-8 it Europe/Rome it_IT.UTF-8
145 slords 1.3 +Magyar hu latarcyrheb-sun16 hu_HU.UTF-8 hu Europe/Budapest hu_HU.UTF-8
146     +Nederlands nl latarcyrheb-sun16 nl_NL.UTF-8 nl Europe/Amsterdam nl_NL.UTF-8
147 slords 1.4 +Português pt_BR latarcyrheb-sun16 pt_BR.UTF-8 br-abnt2 America/Sao_Paulo pt_BR.UTF-8
148 slords 1.3 +Slovenski sl latarcyrheb-sun16 sl_SI.UTF-8 slovene Europe/Ljubljana sl_SI.UTF-8
149     +Svensk sv latarcyrheb-sun16 sv_SE.UTF-8 sv-latin1 Europe/Stockholm sv_SE.UTF-8
150     --- anaconda-10.1.1.81/packages.py.sme 2008-03-17 11:02:31.000000000 -0600
151     +++ anaconda-10.1.1.81/packages.py 2008-03-17 11:07:55.000000000 -0600
152     @@ -1610,7 +1610,7 @@
153     "from testers, and it is not suitable "
154     "for day to day usage.\n\n"
155     "To report feedback, please visit:\n\n"
156     - " http://www.centos.orrg/bugs\n\n"
157     + " http://bugs.contribs.org/\n\n"
158     "and file a report against '%s'.\n"
159     %(productName, fileagainst)),
160     type="custom", custom_icon="warning",
161 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/partedUtils.py mezzanine_patched_anaconda-10.1.1.37/partedUtils.py
162     --- anaconda-10.1.1.37/partedUtils.py 2006-04-06 06:59:28.175482025 +1000
163     +++ mezzanine_patched_anaconda-10.1.1.37/partedUtils.py 2006-04-06 06:47:31.309955789 +1000
164     @@ -454,8 +454,8 @@
165     return None
166    
167     def getCentOSReleaseString(mountpoint):
168     - if os.access(mountpoint + "/etc/redhat-release", os.R_OK):
169     - f = open(mountpoint + "/etc/redhat-release", "r")
170     + if os.access(mountpoint + "/etc/e-smith-release", os.R_OK):
171     + f = open(mountpoint + "/etc/e-smith-release", "r")
172     try:
173     lines = f.readlines()
174     except IOError:
175     @@ -497,6 +497,7 @@
176     return 1
177    
178     productUpgrades = {
179     + "SME Server": ("Mitel Networks", "SME Server", ),
180     "Red Hat Enterprise Linux AS": ("Red Hat Linux Advanced Server", ),
181     "Red Hat Enterprise Linux WS": ("Red Hat Linux Advanced Workstation",),
182     # FIXME: this probably shouldn't be in a release...
183     diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/textw/installpath_text.py mezzanine_patched_anaconda-10.1.1.37/textw/installpath_text.py
184     --- anaconda-10.1.1.37/textw/installpath_text.py 2003-04-22 07:21:24.000000000 +1000
185     +++ mezzanine_patched_anaconda-10.1.1.37/textw/installpath_text.py 2006-04-06 06:56:41.641388290 +1000
186     @@ -45,12 +45,12 @@
187     if orig != None:
188     default = orig
189    
190     - (button, choice) = ListboxChoiceWindow(screen, _("Installation Type"),
191     - _("What type of system would you like to install?"),
192     - choices, [TEXT_OK_BUTTON, TEXT_BACK_BUTTON],
193     - width = 40, default = default, help = "installpath")
194     + choice = default
195     + rc = intf.messageWindow(_("Warning"),
196     + _("All disks will be reformatted and any data will be lost. Proceed?"),
197     + type = "yesno", default = "no")
198    
199     - if button == TEXT_BACK_CHECK:
200     + if rc == 0:
201     return INSTALL_BACK
202    
203     if (choice != orig):
204     diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/textw/language_text.py mezzanine_patched_anaconda-10.1.1.37/textw/language_text.py
205     --- anaconda-10.1.1.37/textw/language_text.py 2004-09-14 01:12:37.000000000 +1000
206     +++ mezzanine_patched_anaconda-10.1.1.37/textw/language_text.py 2006-04-06 06:53:37.317389387 +1000
207     @@ -91,85 +91,12 @@
208    
209     class LanguageSupportWindow:
210     def __call__(self, screen, language):
211     -
212     - # should already be sorted
213     - ct = CheckboxTree(height = 8, scroll = 1)
214     -
215     - for lang in language.getAllSupported():
216     - ct.append(lang, lang, 0)
217     -
218     - for lang in language.getSupported ():
219     - ct.setEntryValue(lang, 1)
220     -
221     - current = language.getDefault()
222     - ct.setCurrent(current)
223     - ct.setEntryValue(current, 1)
224     -
225     - bb = ButtonBar (screen, (TEXT_OK_BUTTON, (_("Select All"), "all"), (_("Reset"), "reset"), TEXT_BACK_BUTTON))
226     -
227     - message = (_("Choose additional languages that you would like to use "
228     - "on this system:"))
229     - tb = TextboxReflowed(50, message)
230     -
231     - g = GridFormHelp (screen, _("Language Support"), "langsupport", 1, 4)
232     -
233     - g.add (tb, 0, 0, (0, 0, 0, 1), anchorLeft = 1)
234     - g.add (ct, 0, 1, (0, 0, 0, 1))
235     - g.add (bb, 0, 3, growx = 1)
236     -
237     - while 1:
238     - result = g.run()
239     -
240     - rc = bb.buttonPressed (result)
241     -
242     - if rc == TEXT_BACK_CHECK:
243     - screen.popWindow()
244     - return INSTALL_BACK
245     -
246     - if rc == "all":
247     - for lang in language.getAllSupported():
248     - ct.setEntryValue(lang, 1)
249     -
250     - if rc == "reset":
251     - for lang in language.getAllSupported():
252     - if lang == current:
253     - ct.setEntryValue(lang, 1)
254     - else:
255     - ct.setEntryValue(lang, 0)
256     -
257     - if rc == TEXT_OK_CHECK or result == TEXT_F12_CHECK:
258     - # --If they selected all langs, then set language.setSupported to
259     - # None. This installs all langs
260     -
261     - if ct.getSelection() == []:
262     - ButtonChoiceWindow(screen, _("Invalid Choice"),
263     - _("You must select at least one language to install."),
264     - buttons = [ TEXT_OK_BUTTON ], width = 40)
265     -
266     - else:
267     - # set selected langs once
268     - language.setSupported (ct.getSelection())
269     -
270     - # we may need to reset the default language
271     - default = language.getDefault()
272     - if default not in ct.getSelection():
273     - sellangs = language.getSupported()
274     -
275     - if len(sellangs) > 0:
276     - language.setDefault(sellangs[0])
277     - else:
278     - language.setDefault(None)
279     -
280     - else:
281     - language.setDefault(default)
282     -
283     - # now set new selected langs again in case old default
284     - # lang was left in the list before we switched the default
285     - language.setSupported (ct.getSelection())
286     -
287     - screen.popWindow()
288     - return INSTALL_OK
289     -
290     + langs = []
291     + default = language.getDefault()
292     + langs.append(default)
293     + language.setSupported(langs)
294     + language.setDefault(default)
295     + return INSTALL_OK
296    
297     class LanguageDefaultWindow:
298     def __call__(self,screen, language):
299     diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/textw/progress_text.py mezzanine_patched_anaconda-10.1.1.37/textw/progress_text.py
300     --- anaconda-10.1.1.37/textw/progress_text.py 2003-10-08 08:05:01.000000000 +1000
301     +++ mezzanine_patched_anaconda-10.1.1.37/textw/progress_text.py 2006-04-06 06:54:35.803234655 +1000
302     @@ -103,8 +103,8 @@
303    
304     currow = 0
305    
306     - width = 47 + max (len (name), len (size), len (sum))
307     - self.name = Label(" " * 48)
308     + width = 60 + max (len (name), len (size), len (sum))
309     + self.name = Label(" " * 59)
310     self.size = Label(" ")
311     detail = Grid(2, 2)
312     detail.setField(Label(name), 0, 0, anchorLeft = 1)
313     diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/textw/timezone_text.py mezzanine_patched_anaconda-10.1.1.37/textw/timezone_text.py
314     --- anaconda-10.1.1.37/textw/timezone_text.py 2004-05-12 08:29:07.000000000 +1000
315     +++ mezzanine_patched_anaconda-10.1.1.37/textw/timezone_text.py 2006-04-06 06:56:03.241054486 +1000
316     @@ -48,8 +48,7 @@
317     args = [ "/usr/sbin/hwclock" ]
318    
319     args.append("--hctosys")
320     - if self.c.selected():
321     - args.append("--utc")
322     + args.append("--utc")
323    
324     iutil.execWithRedirect(args[0], args)
325     self.g.setTimer(500)
326     @@ -91,14 +90,12 @@
327     self.l.setCurrent(default)
328     # self.l.setCallback(self.updateClock)
329    
330     - self.c = Checkbox("System clock uses UTC", isOn = asUtc)
331     # self.c.setCallback(self.updateSysClock)
332    
333     self.g = GridFormHelp(screen, _("Time Zone Selection"), "timezone",
334     1, 5)
335     self.g.add(t, 0, 0)
336     # self.g.add(self.label, 0, 1, padding = (0, 1, 0, 0), anchorLeft = 1)
337     - self.g.add(self.c, 0, 2, padding = (0, 1, 0, 1), anchorLeft = 1)
338     self.g.add(self.l, 0, 3, padding = (0, 0, 0, 1))
339     self.g.add(bb, 0, 4, growx = 1)
340    
341     @@ -126,7 +123,7 @@
342     break
343    
344     screen.popWindow()
345     - timezone.setTimezoneInfo(self.l.current(), asUtc = self.c.selected())
346     + timezone.setTimezoneInfo(self.l.current(), asUtc = 1)
347    
348     return INSTALL_OK
349    
350     diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/textw/upgrade_text.py mezzanine_patched_anaconda-10.1.1.37/textw/upgrade_text.py
351     --- anaconda-10.1.1.37/textw/upgrade_text.py 2004-08-19 02:34:08.000000000 +1000
352     +++ mezzanine_patched_anaconda-10.1.1.37/textw/upgrade_text.py 2006-04-06 06:59:04.069665851 +1000
353     @@ -20,8 +20,8 @@
354     from fsset import *
355     from flags import flags
356     from constants import *
357     -import upgradeclass
358     -UpgradeClass = upgradeclass.InstallClass
359     +import smeupgradeclass
360     +UpgradeClass = smeupgradeclass.InstallClass
361    
362     from rhpl.log import log
363     from rhpl.translate import _
364     @@ -196,26 +196,19 @@
365     else:
366     scroll = 0
367     partList = []
368     - partList.append(_("Reinstall System"))
369     + partList.append(_("Erase ALL disks, and perform a fresh install"))
370    
371     for (drive, fs, desc) in parts:
372     - if drive[:5] != "/dev/":
373     - devname = "/dev/" + drive
374     - else:
375     - devname = drive
376     - partList.append("%s (%s)" %(desc, drive))
377 slords 1.3 + partList.append(_("Upgrade existing \"%s\" system") %(desc))
378 slords 1.1
379     (button, choice) = ListboxChoiceWindow(screen, _("System to Upgrade"),
380     - _("One or more existing Linux installations "
381     - "have been found "
382     - "on your system.\n\nPlease choose one to upgrade, "
383     - "or select 'Reinstall System' to freshly install "
384     - "your system."), partList,
385     + _("Your system is upgradeable."), partList,
386     [ TEXT_OK_BUTTON,
387     TEXT_BACK_BUTTON ],
388     width = 55, scroll = scroll,
389     height = height,
390     - help = "upgraderoot")
391     + help = "upgraderoot",
392     + default = 1)
393    
394     if button == TEXT_BACK_CHECK:
395     return INSTALL_BACK
396     diff -Nur -x '*.orig' -x '*.rej' anaconda-10.1.1.37/upgrade.py mezzanine_patched_anaconda-10.1.1.37/upgrade.py
397     --- anaconda-10.1.1.37/upgrade.py 2006-04-06 06:59:28.387445237 +1000
398     +++ mezzanine_patched_anaconda-10.1.1.37/upgrade.py 2006-04-06 06:50:27.473356801 +1000
399 slords 1.2 @@ -49,6 +49,21 @@
400     upgrade_remove_blacklist = ( ("samba","ppc64"),)
401    
402 slords 1.1 def findRootParts(intf, id, dispatch, dir, chroot):
403     +# w = intf.waitWindow(_("Converting to RAID"),
404     +# _("Converting to RAID, this may take several minutes..."))
405     +#
406     +# # XXX - FIXME - HACK RAID upgrade
407     +#
408     +# rc = iutil.execWithRedirect("/tmp/updates/raidconvert",
409     +# ["raidconvert"],
410     +# stdin = None,
411     +# stdout = "/dev/tty5",
412     +# stderr = "/dev/tty5")
413     +# w.pop()
414     +#
415     +# if rc:
416     +# raise SystemError
417     +
418     if dir == DISPATCH_BACK:
419     return
420     if id.rootParts is None:
421 slords 1.2 @@ -60,7 +75,7 @@
422 slords 1.1
423     if id.rootParts is not None and len(id.rootParts) > 0:
424     dispatch.skipStep("findinstall", skip = 0)
425     - if productName.find("Red Hat Enterprise Linux") == -1:
426     + if productName.find("SME Server") == -1:
427     dispatch.skipStep("installtype", skip = 1)
428     else:
429     dispatch.skipStep("findinstall", skip = 1)
430 slords 1.2 @@ -513,10 +528,10 @@
431 slords 1.1 pass
432     sys.exit(0)
433    
434     - if not os.access(instPath + "/etc/redhat-release", os.R_OK):
435     + if not os.access(instPath + "/etc/e-smith-release", os.R_OK):
436     rc = intf.messageWindow(_("Warning"),
437     _("This system does not have an "
438     - "/etc/redhat-release file. It is possible "
439     + "/etc/e-smith-release file. It is possible "
440     "that this is not a %s system. "
441     "Continuing with the upgrade process may "
442     "leave the system in an unusable state. Do "
443 slords 1.2 @@ -533,7 +548,7 @@
444 slords 1.1 # Figure out current version for upgrade nag and for determining weird
445     # upgrade cases
446     supportedUpgradeVersion = -1
447     - mi = ts.dbMatch('provides', 'redhat-release')
448     + mi = ts.dbMatch('provides', 'e-smith-release')
449     for h in mi:
450     if h[rpm.RPMTAG_EPOCH] is None:
451     epoch = None
452 slords 1.2 @@ -541,7 +556,7 @@
453 slords 1.1 epoch = str(h[rpm.RPMTAG_EPOCH])
454    
455     if supportedUpgradeVersion <= 0:
456     - val = rpm.labelCompare((None, '3', '1'),
457     + val = rpm.labelCompare(('21', '6.0', '11'),
458     (epoch, h[rpm.RPMTAG_VERSION],
459     h[rpm.RPMTAG_RELEASE]))
460     if val > 0:
461 slords 1.2 @@ -550,9 +565,6 @@
462 slords 1.1 supportedUpgradeVersion = 1
463     break
464    
465     - if productName.find("Red Hat Enterprise Linux") == -1:
466     - supportedUpgradeVersion = 1
467     -
468     if supportedUpgradeVersion == 0:
469     rc = intf.messageWindow(_("Warning"),
470     _("You appear to be upgrading from a system "

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