diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2005-08-24 17:48:43 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2005-08-24 17:48:43 +0000 |
commit | 7e0de54d4874f4cc1f2cf8631c6eb7c02bb21257 (patch) | |
tree | 9ee1e1f9a9f41d3bca9d31d096963605857bcec6 /upgrade.py | |
parent | 169a2e0a3ddfd6c2cf99ff64e54a150114ff0de5 (diff) | |
download | anaconda-7e0de54d4874f4cc1f2cf8631c6eb7c02bb21257.tar.gz anaconda-7e0de54d4874f4cc1f2cf8631c6eb7c02bb21257.tar.xz anaconda-7e0de54d4874f4cc1f2cf8631c6eb7c02bb21257.zip |
Remove dependency checking
Diffstat (limited to 'upgrade.py')
-rw-r--r-- | upgrade.py | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/upgrade.py b/upgrade.py index 786d7713e..6db512f30 100644 --- a/upgrade.py +++ b/upgrade.py @@ -757,34 +757,7 @@ def upgradeFindPackages(intf, method, id, instPath, dir): id.upgradeDeps = "%s%s\n" %(id.upgradeDeps, text) id.upgradeRemove.append(mi.instance()) - # new package dependency fixup - depcheck = hdrlist.DependencyChecker(id.grpset, how = "u") - for p in id.grpset.hdrlist.pkgs.values(): - if p.isSelected(): - ts.addInstall(p.hdr, p.hdr, "u") - - # now we need to do a depcheck. but adding a package could require - # rerunning the dep check due to things getting replaced (cf, #157754) - # we want to make sure we don't loop forever, though, so let's just - # put an arbitrary limit - runs = 5 - while runs > 0: - rerun = 0 - deps = ts.check(depcheck.callback) - for ((name, version, release), - (reqname, reqversion), - flg, suggest, sense) in deps: - if depcheck.callback(ts, sense, reqname, reqversion, flg) == -1: - rerun = 1 - runs -= 1 - if rerun == 0: - break - - for pkgnevra in depcheck.added: - text = ("Upgrade Dependency: Needs %s, " - "automatically added." % (pkgnevra,)) - # log.info(text) - id.upgradeDeps = "%s%s\n" % (id.upgradeDeps, text) + #XXX: backend dep checking win.pop() |