From 86ca8cb74b8a1cbc37c1f06d354b5a4b579aa336 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Wed, 19 Dec 2007 10:25:24 +0000 Subject: [PATCH] raise exception if path conversion fails git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@914 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropyTools.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/entropyTools.py b/libraries/entropyTools.py index 8d8962d14..9e6fa5c69 100644 --- a/libraries/entropyTools.py +++ b/libraries/entropyTools.py @@ -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: