Fix handling of empty PORTDIR{,_OVERLAY} setting.
authorZac Medico <zmedico@gentoo.org>
Sat, 12 May 2012 01:34:36 +0000 (18:34 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 12 May 2012 01:34:36 +0000 (18:34 -0700)
pym/portage/package/ebuild/config.py

index 1a88250e6d17c43c9a102739e37681f15b62e188..24342080f037af2c2c1e471fcb9b0dcfb78199e0 100644 (file)
@@ -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)