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 /packages.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 'packages.py')
-rw-r--r-- | packages.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/packages.py b/packages.py index 5b0e172a2..a0dd0ffc0 100644 --- a/packages.py +++ b/packages.py @@ -161,11 +161,22 @@ def checkDependencies(dir, intf, disp, id, instPath): win.pop() - if id.dependencies and id.comps.canResolveDeps(id.dependencies): + if (id.dependencies and id.comps.canResolveDeps(id.dependencies) + and id.handleDeps == CHECK_DEPS): disp.skipStep("dependencies", skip = 0) else: disp.skipStep("dependencies") + # this is kind of hackish, but makes kickstart happy + if id.handleDeps == CHECK_DEPS: + pass + elif id.handleDeps == IGNORE_DEPS: + id.comps.selectDepCause(id.dependencies) + id.comps.unselectDeps(id.dependencies) + elif id.handleDeps == RESOLVE_DEPS: + id.comps.selectDepCause(id.dependencies) + id.comps.selectDeps(id.dependencies) + #XXX #try: #self.todo.getHeaderList () |