From 883fefe78295fa8ca427c18a8b372c5d81b99b1e Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Wed, 05 May 2010 07:17:53 +0000 Subject: Cannot delete stalled download from journal #1987 --- 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() -- cgit v0.9.1