From: Zac Medico Date: Sun, 19 Apr 2009 03:14:34 +0000 (-0000) Subject: Fix default master code so that it doesn't trigger when PORTDIR is empty. X-Git-Tag: v2.2_rc31~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5ebcc3927e39b4531c8633d7d8c0a377e7e174b1;p=portage.git Fix default master code so that it doesn't trigger when PORTDIR is empty. svn path=/main/trunk/; revision=13362 --- 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')