diff options
author | Simon Schampijer <simon@schampijer.de> | 2010-06-07 11:45:36 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2010-06-07 11:45:36 (GMT) |
commit | 249d9b0de169d01bf4c794b1b730885734c92535 (patch) | |
tree | 9571e4d3e23222656a89b7914818f12155c06307 | |
parent | 5b6043d46ef8f35d27f42e1a50ccc6b82678a05f (diff) |
Cannot delete stalled download from journal #1987
- backported from 0.88
- initial patch from Aleksey Lim
-rw-r--r-- | src/sugar/bundle/bundle.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sugar/bundle/bundle.py b/src/sugar/bundle/bundle.py index a1b2686..5cf1c0b 100644 --- a/src/sugar/bundle/bundle.py +++ b/src/sugar/bundle/bundle.py @@ -61,10 +61,9 @@ class Bundle(object): def __init__(self, path): self._path = path self._zip_root_dir = None + self._zip_file = None - if os.path.isdir(self._path): - self._zip_file = None - else: + if not os.path.isdir(self._path): self._zip_file = zipfile.ZipFile(self._path) self._check_zip_bundle() |