From 08c1d17cb014a6baf23fd526c93d45dada4fad08 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 24 Apr 2008 16:23:53 +0200 Subject: [PATCH] Fix installation of bundles --- sugar/bundle/bundle.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sugar/bundle/bundle.py b/sugar/bundle/bundle.py index ae5e9961..47d08b2c 100644 --- a/sugar/bundle/bundle.py +++ b/sugar/bundle/bundle.py @@ -83,7 +83,7 @@ class Bundle: self._zip_root_dir = file_names[0].split('/')[0] if self._unzipped_extension is not None: - ext = os.path.splitext(self._zip_root_dir)[0] + (name_, ext) = os.path.splitext(self._zip_root_dir) if ext != self._unzipped_extension: raise MalformedBundleException( 'All files in the bundle must be inside a single ' + @@ -110,7 +110,7 @@ class Bundle: data = zip_file.read(path) f = StringIO.StringIO(data) except KeyError: - logging.log('%s not found.' % filename) + logging.debug('%s not found.' % filename) zip_file.close() return f @@ -145,7 +145,7 @@ class Bundle: if not os.path.isdir(install_path): raise InvalidPathException if self._unzipped_extension is not None: - ext = os.path.splitext(install_path)[1] + (name_, ext) = os.path.splitext(install_path) if ext != self._unzipped_extension: raise InvalidPathException