diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-04-19 03:14:34 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-04-19 03:14:34 +0000 |
commit | 5ebcc3927e39b4531c8633d7d8c0a377e7e174b1 (patch) | |
tree | 1594201c23ac09eefa288acae4c84db73c474cc1 | |
parent | 49b73cf5ae2dc946806bb09b1626df326b421e94 (diff) | |
download | portage-5ebcc3927e39b4531c8633d7d8c0a377e7e174b1.tar.gz portage-5ebcc3927e39b4531c8633d7d8c0a377e7e174b1.tar.bz2 portage-5ebcc3927e39b4531c8633d7d8c0a377e7e174b1.zip |
Fix default master code so that it doesn't trigger when PORTDIR is empty.
svn path=/main/trunk/; revision=13362
-rw-r--r-- | pym/portage/dbapi/porttree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 2be49d58f..318d00c11 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -253,7 +253,7 @@ class portdbapi(dbapi): else: porttrees.append(master_path) - if not porttrees: + if not porttrees and path != porttree_root: # Make PORTDIR the default master, but only if our # heuristics suggest that it's necessary. profiles_desc = os.path.join(path, 'profiles', 'profiles.desc') |