raise exception if path conversion fails

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@914 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-12-19 10:25:24 +00:00
parent 96b6f5120b
commit 86ca8cb74b
+6
View File
@@ -1412,6 +1412,12 @@ def quickpkg(pkgdata, dirpath, edb = True, portdbPath = None, fake = False, comp
# collect files
for path in contents:
# convert path into utf8
path = string_to_utf8(path)
if path == None:
path.decode("utf8") # will raise the exception
# otherwise, force it
raise Exception, "something is broken here!"
try:
exist = os.lstat(path)
except OSError: