diff options
author | David Cantrell <dcantrell@redhat.com> | 2006-01-19 19:11:42 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2006-01-19 19:11:42 +0000 |
commit | 416204e3eb1ec04dd4f62cfd5f236aeb6dd3ba06 (patch) | |
tree | fc10c474eaf463bad2571ac66a49b6f14ef97254 /instdata.py | |
parent | 93ab0c562b85fdab2ab5f60f28339ddabf4d0da1 (diff) | |
download | anaconda-416204e3eb1ec04dd4f62cfd5f236aeb6dd3ba06.tar.gz anaconda-416204e3eb1ec04dd4f62cfd5f236aeb6dd3ba06.tar.xz anaconda-416204e3eb1ec04dd4f62cfd5f236aeb6dd3ba06.zip |
Fix 178095.
Diffstat (limited to 'instdata.py')
-rw-r--r-- | instdata.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/instdata.py b/instdata.py index 67703e132..64ea965e8 100644 --- a/instdata.py +++ b/instdata.py @@ -61,7 +61,7 @@ class InstallData: self.auth = "--enableshadow --enablemd5" self.desktop = desktop.Desktop() self.grpset = None - self.upgrade = False + self.upgrade = None # XXX move fsset and/or diskset into Partitions object? self.fsset.reset() self.diskset = partedUtils.DiskSet() @@ -104,8 +104,14 @@ class InstallData: def setHeadless(self, isHeadless): self.isHeadless = isHeadless + # if upgrade is None, it really means False. we use None to help the + # installer ui figure out if it's the first time the user has entered + # the examine_gui screen. --dcantrell def getUpgrade (self): - return self.upgrade + if self.upgrade == None: + return False + else: + return self.upgrade def setUpgrade (self, bool): self.upgrade = bool @@ -140,7 +146,7 @@ class InstallData: self.rootPassword.write (instPath, useMD5) self.accounts.write (instPath, useMD5) - def writeKS(self, filename, backend): + def writeKS(self, filename): if self.auth.find("--enablemd5"): useMD5 = True else: @@ -201,7 +207,7 @@ class InstallData: self.timezone.writeKS(f) self.bootloader.writeKS(f) self.partitions.writeKS(f) - backend.writePackagesKS(f) +# backend.writePackagesKS(f) f.write("\n%post\n") self.accounts.writeKScommands(f, useMD5) |