From: Zac Medico Date: Fri, 25 Sep 2009 05:03:13 +0000 (-0000) Subject: Fix ValueError in digestcheck(), reported by Arfrever. X-Git-Tag: v2.2_rc42~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=035c81c554c135ff5a22e6ac8e21c33e8facaf0d;p=portage.git Fix ValueError in digestcheck(), reported by Arfrever. svn path=/main/trunk/; revision=14419 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 9adab4baf..5fb492ae9 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -5419,6 +5419,7 @@ def digestcheck(myfiles, mysettings, strict=0, justmanifest=0): return 0 continue for d in dirs: + d_bytes = d try: d = _unicode_decode(d, encoding=_encodings['fs'], errors='strict') @@ -5434,7 +5435,7 @@ def digestcheck(myfiles, mysettings, strict=0, justmanifest=0): dirs.remove(d) continue if d.startswith(".") or d == "CVS": - dirs.remove(d) + dirs.remove(d_bytes) for f in files: try: f = _unicode_decode(f,