diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-27 15:17:14 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-27 15:17:14 -0700 |
commit | 575269bb0d3a30aefd355dd7d4b8c8fbeaeea893 (patch) | |
tree | 2c1d76f2bada367d090492252efd6bbbdf05b6b7 | |
parent | aa5a8e0d18f5c44b672cd02b615e8f124173e3e8 (diff) | |
download | portage-575269bb0d3a30aefd355dd7d4b8c8fbeaeea893.tar.gz portage-575269bb0d3a30aefd355dd7d4b8c8fbeaeea893.tar.bz2 portage-575269bb0d3a30aefd355dd7d4b8c8fbeaeea893.zip |
Fix depgraph._pkg() to not raise PackageNotFound when myrepo is None
and a package is found, so --resume works.
-rw-r--r-- | pym/_emerge/depgraph.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 7c4e30aec..33dbecfb9 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -3287,6 +3287,7 @@ class depgraph(object): if type_name == "ebuild" and myrepo is None: #We're asked to return a matching Package from any repo. + metadata = None for repo in db.getRepositories(): if not db.cpv_exists(cpv, myrepo=repo): continue @@ -3296,7 +3297,8 @@ class depgraph(object): continue else: break - raise portage.exception.PackageNotFound(cpv) + if metadata is None: + raise portage.exception.PackageNotFound(cpv) else: try: metadata = zip(db_keys, db.aux_get(cpv, db_keys, myrepo=myrepo)) |