projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d08ac
)
repoman: fix Unicode unequal comparison warning
author
Zac Medico
<zmedico@gentoo.org>
Mon, 10 Sep 2012 21:06:52 +0000
(14:06 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 10 Sep 2012 21:06:52 +0000
(14:06 -0700)
pym/repoman/utilities.py
patch
|
blob
|
history
diff --git
a/pym/repoman/utilities.py
b/pym/repoman/utilities.py
index e5236aa125129463b63a478aaaf599d7d9a9b846..b4080741d86568cc6cb006326c0c0d230f0ba4df 100644
(file)
--- 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.