From 883fefe78295fa8ca427c18a8b372c5d81b99b1e Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Wed, 5 May 2010 07:17:53 +0000 Subject: [PATCH] Cannot delete stalled download from journal #1987 --- src/sugar/bundle/bundle.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sugar/bundle/bundle.py b/src/sugar/bundle/bundle.py index c9763a00..cb110ccb 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()