diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-11-06 23:51:29 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-11-06 23:51:29 +0000 |
commit | 98b7414ba39b1ae52139f413aeae03359031d588 (patch) | |
tree | 5f105300fa26acbe87253ce120dd3d1257b4de4b /instdata.py | |
parent | bfac7248bdd8aad61cc329c8399da392ae61f42c (diff) | |
download | anaconda-98b7414ba39b1ae52139f413aeae03359031d588.tar.gz anaconda-98b7414ba39b1ae52139f413aeae03359031d588.tar.xz anaconda-98b7414ba39b1ae52139f413aeae03359031d588.zip |
move %package writing into its own method
Diffstat (limited to 'instdata.py')
-rw-r--r-- | instdata.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/instdata.py b/instdata.py index 8ec4fb718..2a2f3990b 100644 --- a/instdata.py +++ b/instdata.py @@ -133,7 +133,12 @@ class InstallData: self.timezone.writeKS(f) self.bootloader.writeKS(f) self.partitions.writeKS(f) + self.writePackagesKS(f) + f.write("\n%post\n") + self.accounts.writeKScommands(f, self.auth) + + def writePackagesKS(self, f): f.write("\n%packages") if self.handleDeps == IGNORE_DEPS: f.write(" --ignoredeps\n") @@ -177,9 +182,6 @@ class InstallData: if pkg.wasForcedOff() or forcedoff.has_key(pkg): f.write("-%s\n" %(pkg.name)) - f.write("\n%post\n") - self.accounts.writeKScommands(f, self.auth) - def __init__(self, extraModules, floppyDevice, configFileData, methodstr): self.instLanguage = language.InstallTimeLanguage() self.keyboard = keyboard.Keyboard() |