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 /kickstart.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 'kickstart.py')
-rw-r--r-- | kickstart.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py index 46c748234..d13e47d16 100644 --- a/kickstart.py +++ b/kickstart.py @@ -6,6 +6,7 @@ from partitioning import * from autopart import * from fsset import * from flags import flags +from constants import * import sys import raid import string @@ -525,6 +526,12 @@ class KickstartBase(BaseInstallClass): scriptInterp = arg elif args and args[0] == "%packages": + if len(args) > 1: + if args[1] == "--resolvedeps": + id.handleDeps = RESOLVE_DEPS + elif args[1] == "--ignoredeps": + id.handleDeps = IGNORE_DEPS + if where =="pre" or where == "post": s = Script(script, scriptInterp, scriptChroot) if where == "pre": |