summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-10 14:06:52 -0700
committerZac Medico <zmedico@gentoo.org>2012-09-10 14:06:52 -0700
commitc512c31e3ce0f53ac3ad4d59a577503413704174 (patch)
tree2074a160fa436ae6489e73e0b00d130befe7b16c
parent11d08aca93d6a458cdf71473c22c205d66df57f6 (diff)
downloadportage-c512c31e3ce0f53ac3ad4d59a577503413704174.tar.gz
portage-c512c31e3ce0f53ac3ad4d59a577503413704174.tar.bz2
portage-c512c31e3ce0f53ac3ad4d59a577503413704174.zip
repoman: fix Unicode unequal comparison warning
-rw-r--r--pym/repoman/utilities.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py
index e5236aa12..b4080741d 100644
--- a/pym/repoman/utilities.py
+++ b/pym/repoman/utilities.py
@@ -439,7 +439,7 @@ def FindPortdir(settings):
portdir = None
portdir_overlay = None
location = os.getcwd()
- pwd = os.environ.get('PWD', '')
+ pwd = _unicode_decode(os.environ.get('PWD', ''), encoding=_encodings['fs'])
if pwd and pwd != location and os.path.realpath(pwd) == location:
# getcwd() returns the canonical path but that makes it hard for repoman to
# orient itself if the user has symlinks in their portage tree structure.