diff options
author | Chris Lumens <clumens@redhat.com> | 2005-03-28 19:36:51 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-03-28 19:36:51 +0000 |
commit | dc3bdef00ab252648dd31edae9ab299af7007c19 (patch) | |
tree | 7215e84aef14508c80b69b9abe1b4ecd60fc200b /instdata.py | |
parent | bb11bd9f01292cd79027c525db4c0d271c2172b4 (diff) | |
download | anaconda-dc3bdef00ab252648dd31edae9ab299af7007c19.tar.gz anaconda-dc3bdef00ab252648dd31edae9ab299af7007c19.tar.xz anaconda-dc3bdef00ab252648dd31edae9ab299af7007c19.zip |
Remove the Boolean class. We have a type for that.
Diffstat (limited to 'instdata.py')
-rw-r--r-- | instdata.py | 20 |
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"); |