From 8e4022c104c80ed2cefc7412108ebbce557381e1 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 5 May 2012 13:40:04 +0200 Subject: [PATCH] Close updater tarfile so Windows can remove it. fix #163 --- couchpotato/core/_base/updater/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/couchpotato/core/_base/updater/main.py b/couchpotato/core/_base/updater/main.py index 49cbf56a..674936bf 100644 --- a/couchpotato/core/_base/updater/main.py +++ b/couchpotato/core/_base/updater/main.py @@ -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]))