From 5b6f367ee9c163c46810012c43f9b12b6794496c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 May 2012 18:34:36 -0700 Subject: [PATCH] Fix handling of empty PORTDIR{,_OVERLAY} setting. --- pym/portage/package/ebuild/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py index 1a88250e6..24342080f 100644 --- a/pym/portage/package/ebuild/config.py +++ b/pym/portage/package/ebuild/config.py @@ -414,11 +414,11 @@ class config(object): portdir_overlay = "" for confs in [make_globals, make_conf, self.configdict["env"]]: v = confs.get("PORTDIR") - if v: + if v is not None: portdir = v known_repos.append(v) v = confs.get("PORTDIR_OVERLAY") - if v: + if v is not None: portdir_overlay = v known_repos.extend(shlex_split(v)) known_repos = frozenset(known_repos) -- 2.26.2