From 458c3d11cb2d856ee06404179f881b43ca661b79 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 07:18:51 +0000 Subject: Fix default master code so that it doesn't trigger when PORTDIR is empty. (trunk r13362) svn path=/main/branches/2.1.6/; revision=13518 --- 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 2be49d58..318d00c1 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-65-gdbad