From: Zac Medico Date: Mon, 10 Sep 2012 21:06:52 +0000 (-0700) Subject: repoman: fix Unicode unequal comparison warning X-Git-Tag: v2.2.0_alpha126~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c512c31e3ce0f53ac3ad4d59a577503413704174;p=portage.git repoman: fix Unicode unequal comparison warning --- 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.