Close updater tarfile so Windows can remove it. fix #163

This commit is contained in:
Ruud
2012-05-05 13:40:04 +02:00
parent 92926fb7ed
commit 8e4022c104
+1
View File
@@ -232,6 +232,7 @@ class SourceUpdater(BaseUpdater):
# Extract
tar = tarfile.open(destination)
tar.extractall(path = extracted_path)
tar.close()
os.remove(destination)
self.replaceWith(os.path.join(extracted_path, os.listdir(extracted_path)[0]))