diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2010-05-05 07:17:53 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2010-06-02 15:01:45 (GMT) |
commit | 883fefe78295fa8ca427c18a8b372c5d81b99b1e (patch) | |
tree | fe135746e8e162d8aaf20aac4b7093c0fe6a2113 | |
parent | 845d2534e670366a92fd93be92a078a4a188ff9f (diff) |
Cannot delete stalled download from journal #1987
-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 c9763a0..cb110cc 100644 --- a/src/sugar/bundle/bundle.py +++ b/src/sugar/bundle/bundle.py @@ -68,10 +68,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() |