diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2005-08-19 19:34:53 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2005-08-19 19:34:53 +0000 |
commit | 231a239587b541492e90879ceb12c8f777e63f9f (patch) | |
tree | 323ef95217d6980bf26937e215234c064978f0d3 /packages.py | |
parent | b560867a5a95c847596e8ef1ea63bd47a4abf96f (diff) | |
download | anaconda-231a239587b541492e90879ceb12c8f777e63f9f.tar.gz anaconda-231a239587b541492e90879ceb12c8f777e63f9f.tar.xz anaconda-231a239587b541492e90879ceb12c8f777e63f9f.zip |
Extract checkDependencies
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/packages.py b/packages.py index 9cbb2714f..f8996ed3a 100644 --- a/packages.py +++ b/packages.py @@ -241,40 +241,6 @@ def getAnacondaTS(instPath = None): return ts -def checkDependencies(dir, intf, disp, id, instPath): - if dir == DISPATCH_BACK: - return - - win = intf.waitWindow(_("Dependency Check"), - _("Checking dependencies in packages selected for installation...")) - - # FIXME: we really don't need to build up a ts more than once - # granted, this is better than before still - if id.getUpgrade(): - ts = getAnacondaTS(instPath) - how = "u" - else: - ts = getAnacondaTS() - how = "i" - - # set the rpm log file to /dev/null so that we don't segfault - f = open("/dev/null", "w+") - rpm.setLogFile(f) - ts.scriptFd = f.fileno() - - for p in id.grpset.hdrlist.pkgs.values(): - if p.isSelected(): - ts.addInstall(p.hdr, p.hdr, how) - depcheck = DependencyChecker(id.grpset, how) - id.dependencies = ts.check(depcheck.callback) - - win.pop() - disp.skipStep("dependencies") - - f.close() - - return - class InstallCallback: def packageDownloadCB(self, state, amount): self.progress.setPackageStatus(state, amount) |