diff --git a/addon.xml b/addon.xml index 212a4bc..ff310f4 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/changelog.txt b/changelog.txt index f55ab15..40cc98f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +[B]Version 0.1.3[/B] ++ Android execute fix + [B]Version 0.1.2[/B] + Torrent2http binaries for Raspberry Pi v1 (arm v6) diff --git a/lib/torrent2http/engine.py b/lib/torrent2http/engine.py index e8a76f0..8a99d4b 100644 --- a/lib/torrent2http/engine.py +++ b/lib/torrent2http/engine.py @@ -30,8 +30,12 @@ class Engine: def _ensure_binary_executable(self, path): st = os.stat(path) if not st.st_mode & stat.S_IEXEC: - self._log("%s is not executable, trying to change its mode..." % path) - os.chmod(path, st.st_mode | stat.S_IEXEC) + try: + self._log("%s is not executable, trying to change its mode..." % path) + os.chmod(path, st.st_mode | stat.S_IEXEC) + except Exception, e: + self._log("Failed! Exception: %s" % str(e)) + return False st = os.stat(path) if st.st_mode & stat.S_IEXEC: self._log("Succeeded") @@ -63,8 +67,6 @@ class Engine: if not success: raise Error("Can't find torrent2http or download binary for %s" % self.platform, Error.UNKNOWN_PLATFORM, platform=str(self.platform)) - else: - lm.update() if not self._ensure_binary_executable(binary_path): if self.platform.system == "android":