summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-10-04 16:01:56 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-10-04 16:01:56 +0000
commit08936baaec5ab3cf50445513d9f5c92f9b74fc07 (patch)
tree1bb8acc355ecbaba579839298482cddf5327410e
parent76d849b5475f4815da33bc438f82db3c0df0a3af (diff)
downloadportage-08936baaec5ab3cf50445513d9f5c92f9b74fc07.tar.gz
portage-08936baaec5ab3cf50445513d9f5c92f9b74fc07.tar.bz2
portage-08936baaec5ab3cf50445513d9f5c92f9b74fc07.zip
Add path to utf-8 checks so that repoman doesn't break outside of the package dir
svn path=/main/branches/2.0/; revision=2089
-rwxr-xr-xbin/repoman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 4b813a3a1..17f10a63b 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -686,7 +686,7 @@ for x in scanlist:
continue
try:
line = 1
- for l in codecs.open(y, "r", "utf8"):
+ for l in codecs.open(checkdir+"/"+y, "r", "utf8"):
line +=1
except UnicodeDecodeError, ue:
stats["file.UTF8"] += 1