diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-02-22 23:36:19 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-02-22 23:36:19 +0000 |
commit | b7bcba6bfeb7d83a8563222cdcd91aa1ef14f1f6 (patch) | |
tree | ebfc28004682e368c8a9011de76f59252fde3698 /instdata.py | |
parent | 749da07ed84caaaee12bd8c21e8442254f14ebe4 (diff) | |
download | anaconda-b7bcba6bfeb7d83a8563222cdcd91aa1ef14f1f6.tar.gz anaconda-b7bcba6bfeb7d83a8563222cdcd91aa1ef14f1f6.tar.xz anaconda-b7bcba6bfeb7d83a8563222cdcd91aa1ef14f1f6.zip |
handle %packages --ignoredeps and %packages --resolvedeps so that people
can control the handling of any spurious dependencies when using kickstart.
if neither is specified, keep the previous behavior (#57297)
Diffstat (limited to 'instdata.py')
-rw-r--r-- | instdata.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/instdata.py b/instdata.py index 73121c947..83c46e23b 100644 --- a/instdata.py +++ b/instdata.py @@ -25,6 +25,7 @@ import bootloader import partitions import partedUtils from flags import * +from constants import * from simpleconfig import SimpleConfigFile @@ -67,6 +68,7 @@ class InstallData: self.partitions = partitions.Partitions() self.bootloader = bootloader.getBootloader() self.dependencies = [] + self.handleDeps = CHECK_DEPS self.dbpath = None self.upgradeRoot = None self.upgradeSwapInfo = None @@ -126,7 +128,13 @@ class InstallData: self.bootloader.writeKS(f) self.partitions.writeKS(f) - f.write("\n%packages\n") + f.write("\n%packages") + if self.handleDeps == IGNORE_DEPS: + f.write(" --ignoredeps\n") + elif self.handleDeps == RESOLVE_DEPS: + f.write(" --resolvedeps\n") + else: + f.write("\n") packages = {} for comp in self.comps: if comp.isSelected(): |