diff options
-rwxr-xr-x | bin/emaint | 3 | ||||
-rw-r--r-- | pym/_emerge/FakeVartree.py | 3 | ||||
-rw-r--r-- | pym/portage/_global_updates.py | 3 |
3 files changed, 9 insertions, 0 deletions
@@ -239,6 +239,9 @@ class MoveHandler(object): for repo_name in self._portdb.getRepositories(): repo = self._portdb.getRepositoryPath(repo_name) updpath = os.path.join(repo, "profiles", "updates") + if not os.path.isdir(updpath): + # as a backwards-compatibility measure, fallback to PORTDIR + updpath = os.path.join(self._portdb.porttree_root, "profiles", "updates") try: rawupdates = grab_updates(updpath) except portage.exception.DirectoryNotFound: diff --git a/pym/_emerge/FakeVartree.py b/pym/_emerge/FakeVartree.py index afc74457..22f9f373 100644 --- a/pym/_emerge/FakeVartree.py +++ b/pym/_emerge/FakeVartree.py @@ -185,6 +185,9 @@ def grab_global_updates(portdb): for repo_name in portdb.getRepositories(): repo = portdb.getRepositoryPath(repo_name) updpath = os.path.join(repo, "profiles", "updates") + if not os.path.isdir(updpath): + # as a backwards-compatibility measure, fallback to PORTDIR + updpath = os.path.join(portdb.porttree_root, "profiles", "updates") try: rawupdates = grab_updates(updpath) except portage.exception.DirectoryNotFound: diff --git a/pym/portage/_global_updates.py b/pym/portage/_global_updates.py index b287654c..214052da 100644 --- a/pym/portage/_global_updates.py +++ b/pym/portage/_global_updates.py @@ -58,6 +58,9 @@ def _global_updates(trees, prev_mtimes): for repo_name in portdb.getRepositories(): repo = portdb.getRepositoryPath(repo_name) updpath = os.path.join(repo, "profiles", "updates") + if not os.path.isdir(updpath): + # as a backwards-compatibility measure, fallback to PORTDIR + updpath = os.path.join(portdb.porttree_root, "profiles", "updates") try: if mysettings.get("PORTAGE_CALLER") == "fixpackages": |