SOURCES: anaconda-installclass-pld.py - almost works

patrys patrys at pld-linux.org
Wed Aug 27 23:35:25 CEST 2008


Author: patrys                       Date: Wed Aug 27 21:35:25 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- almost works

---- Files affected:
SOURCES:
   anaconda-installclass-pld.py (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/anaconda-installclass-pld.py
diff -u SOURCES/anaconda-installclass-pld.py:1.5 SOURCES/anaconda-installclass-pld.py:1.6
--- SOURCES/anaconda-installclass-pld.py:1.5	Tue Dec 18 19:19:16 2007
+++ SOURCES/anaconda-installclass-pld.py	Wed Aug 27 23:35:19 2008
@@ -1,7 +1,6 @@
 from installclass import BaseInstallClass
-import rhpl
-from rhpl.translate import N_
 from constants import *
+from filer import *
 from flags import flags
 import os
 import iutil
@@ -12,6 +11,9 @@
 except ImportError:
     instnum = None
 
+import gettext
+_ = lambda x: gettext.ldgettext("anaconda", x)
+
 import logging
 log = logging.getLogger("anaconda")
 
@@ -21,15 +23,16 @@
     id = "pld"
     name = N_("PLD Linux")
     pixmap = "custom.png"
-    _description = N_("Select this installation type to gain complete "
-		     "control over the installation process, including "
-		     "software package selection and partitioning.")
+    _description = N_("The default installation of %s includes a set of "
+                     "software applicable for general internet usage. "
+                     "What additional tasks would you like your system "
+                     "to include support for?")
     _descriptionFields = (productName,)
     sortPriority = 10000
     allowExtraRepos = True
 
     repopaths = { "base": ["PLD/i686/RPMS", "PLD/noarch/RPMS"], }
-    tasks = [
+    taskMap = {'client': [
         (N_("GNOME Desktop"), [
             "gnome",
             "gnome_complete",
@@ -59,7 +62,7 @@
         (N_("Java Development Tools"), [
             "java"
         ]),
-    ]
+    ]}
 
     def setInstallData(self, anaconda):
 	BaseInstallClass.setInstallData(self, anaconda)
@@ -156,7 +159,7 @@
 
         log.info("repopaths is %s" %(self.repopaths,))
 
-    def getBackend(self, methodstr):
+    def getBackend(self):
         return yuminstall.YumBackend
 
     def __init__(self, expert):
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/anaconda-installclass-pld.py?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list