From 5ebcc3927e39b4531c8633d7d8c0a377e7e174b1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 19 Apr 2009 03:14:34 +0000 Subject: Fix default master code so that it doesn't trigger when PORTDIR is empty. svn path=/main/trunk/; revision=13362 --- pym/portage/dbapi/porttree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- cgit v1.2.3-1-g7c22