From b3a9aba725305c6e7ca45ccc74757ee3bc54d6ba Mon Sep 17 00:00:00 2001 From: lfiebach Date: Sun, 11 Aug 2013 22:47:00 +0200 Subject: [PATCH] update tem directory fix --- addon.xml | 2 +- changelog.txt | 3 +++ resources/lib/modules/system.py | 14 +++++++------- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/addon.xml b/addon.xml index 2056391..c4ae0d1 100755 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/changelog.txt b/changelog.txt index 539568d..fee4238 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2013-08-11 v0.2.5 + (fix) update temp directory + 2013-08-11 v0.2.4 (chg) notification redesign (add) notification Icon diff --git a/resources/lib/modules/system.py b/resources/lib/modules/system.py index e145359..ee24cd4 100755 --- a/resources/lib/modules/system.py +++ b/resources/lib/modules/system.py @@ -889,7 +889,7 @@ def do_autoupdate(self, listItem=None, silent=False): os.makedirs(self.LOCAL_UPDATE_DIR) downloaded = self.oe.download_file(self.update_file, - self.oe.temp_dir + '/' + self.update_file.split('/')[-1], silent) + self.oe.TEMP + self.update_file.split('/')[-1], silent) if not downloaded is None: @@ -900,13 +900,13 @@ def do_autoupdate(self, listItem=None, silent=False): self.oe.notify(self.oe._(32363), self.oe._(32366)) - if not os.path.exists(self.oe.temp_dir - + '/oe_update/'): - os.makedirs(self.oe.temp_dir + '/oe_update/') + if not os.path.exists(self.oe.TEMP + + 'oe_update/'): + os.makedirs(self.oe.TEMP + 'oe_update/') extract_files = ['target/', 'target/'] if self.oe.extract_file(downloaded, extract_files, - self.oe.temp_dir + '/oe_update/', silent) \ + self.oe.TEMP + 'oe_update/', silent) \ == 1: if self.struct['update']['settings' @@ -916,8 +916,8 @@ def do_autoupdate(self, listItem=None, silent=False): os.remove(downloaded) - for update_file in glob.glob(self.oe.temp_dir - + '/oe_update/*'): + for update_file in glob.glob(self.oe.TEMP + + 'oe_update/*'): os.rename(update_file, self.LOCAL_UPDATE_DIR + update_file.rsplit('/')[-1])