diff options
author | Simon Schampijer <erikos@localhost.localdomain> | 2008-04-24 14:23:53 (GMT) |
---|---|---|
committer | Simon Schampijer <erikos@localhost.localdomain> | 2008-04-24 14:23:53 (GMT) |
commit | 08c1d17cb014a6baf23fd526c93d45dada4fad08 (patch) | |
tree | 33839a6c181fd79d2a240a2f40d18ba58109a1ba /sugar | |
parent | 3a164bc87673221b933fce97822dddd5218553c9 (diff) |
Fix installation of bundles
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/bundle/bundle.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sugar/bundle/bundle.py b/sugar/bundle/bundle.py index ae5e996..47d08b2 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 |