summaryrefslogtreecommitdiffstats
path: root/instdata.py
diff options
context:
space:
mode:
Diffstat (limited to 'instdata.py')
-rw-r--r--instdata.py20
1 files changed, 8 insertions, 12 deletions
diff --git a/instdata.py b/instdata.py
index 75a07140b..190a37603 100644
--- a/instdata.py
+++ b/instdata.py
@@ -34,16 +34,6 @@ from constants import *
from rhpl.simpleconfig import SimpleConfigFile
import rhpl.keyboard as keyboard
-class Boolean:
- def set(self, val):
- self.val = val
-
- def get(self):
- return self.val
-
- def __init__(self, val = 0):
- self.val = val
-
# Collector class for all data related to an install/upgrade.
class InstallData:
@@ -66,7 +56,7 @@ class InstallData:
self.auth = users.Authentication()
self.desktop = desktop.Desktop()
self.grpset = None
- self.upgrade = Boolean()
+ self.upgrade = False
# XXX move fsset and/or diskset into Partitions object?
self.fsset.reset()
self.diskset = partedUtils.DiskSet()
@@ -111,6 +101,12 @@ class InstallData:
def setHeadless(self, isHeadless):
self.isHeadless = isHeadless
+ def getUpgrade (self):
+ return self.upgrade
+
+ def setUpgrade (self, bool):
+ self.upgrade = bool
+
def write(self, instPath):
self.instLanguage.write (instPath)
@@ -129,7 +125,7 @@ class InstallData:
f = open(filename, "w", 0600)
f.write("# Kickstart file automatically generated by anaconda.\n\n")
- if self.upgrade.get():
+ if self.upgrade:
f.write("upgrade\n");
else:
f.write("install\n");