]>
Commit | Line | Data |
---|---|---|
f928b1c5 ER |
1 | from installclass import BaseInstallClass |
2 | from rhpl.translate import N_ | |
3 | from constants import * | |
4 | import os | |
5 | import iutil | |
6 | ||
7 | # custom installs are easy :-) | |
8 | class InstallClass(BaseInstallClass): | |
9 | # name has underscore used for mnemonics, strip if you dont need it | |
10 | id = "pld" | |
11 | name = N_("PLD Linux") | |
12 | pixmap = "custom.png" | |
13 | description = N_("Select this installation type to gain complete " | |
14 | "control over the installation process, including " | |
15 | "software package selection and partitioning.") | |
16 | sortPriority = 10000 | |
17 | showLoginChoice = 1 | |
18 | showMinimal = 1 | |
19 | ||
20 | tasks = [ | |
ccf949ed ER |
21 | (N_("GNOME Desktop"), [ |
22 | "gnome", | |
23 | "gnome_complete", | |
24 | "gnome_games", | |
25 | "gnome_themes", | |
26 | ]), | |
27 | (N_("KDE Desktop"), [ | |
28 | "kde_kdepim", | |
29 | "kde_kdeedu", | |
30 | "kde_multimedia", | |
31 | "kde_koffice", | |
32 | "kde_network", | |
33 | "kde_graphics", | |
34 | "kde_admin", | |
35 | "kde_games", | |
36 | "kde_look" | |
37 | ]), | |
38 | (N_("Basic IceWM"), [ | |
39 | "icewm", | |
40 | ]), | |
41 | (N_("WindowMaker"), [ | |
42 | "wmaker", | |
43 | ]), | |
44 | (N_("General Development Tools"), [ | |
45 | "devel" | |
46 | ]), | |
47 | (N_("Java Development Tools"), [ | |
48 | "java" | |
49 | ]), | |
f928b1c5 ER |
50 | ] |
51 | ||
52 | def setInstallData(self, id, intf = None): | |
53 | BaseInstallClass.setInstallData(self, id) | |
54 | BaseInstallClass.setDefaultPartitioning(self, id.partitions, | |
55 | CLEARPART_TYPE_LINUX) | |
56 | ||
57 | def setGroupSelection(self, backend, intf): | |
58 | grps = backend.getDefaultGroups() | |
59 | map(lambda x: backend.selectGroup(x), grps) | |
60 | ||
61 | def __init__(self, expert): | |
62 | BaseInstallClass.__init__(self, expert) |