From b7bcba6bfeb7d83a8563222cdcd91aa1ef14f1f6 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Fri, 22 Feb 2002 23:36:19 +0000 Subject: 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) --- packages.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'packages.py') 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 () -- cgit