fix compatibility with python2.6

This commit is contained in:
Romain Bignon 2012-01-21 16:45:32 +01:00
commit 65169a8a8d
2 changed files with 12 additions and 10 deletions

View file

@ -496,8 +496,9 @@ class Repositories(object):
progress.progress(0.7, 'Setting up module...')
# Extract module from tarball.
with tarfile.open('', 'r:gz', fp) as tar:
tar.extractall(self.modules_dir)
tar = tarfile.open('', 'r:gz', fp)
tar.extractall(self.modules_dir)
tar.close()
self.versions.set(info.name, info.version)