From 4c422bbefc45c4755ee78a528d54f38fcdd680c2 Mon Sep 17 00:00:00 2001
From: Aleksey Lim <alsroot@member.fsf.org>
Date: Wed, 5 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
|
b
|
class Bundle(object): |
68 | 68 | def __init__(self, path): |
69 | 69 | self._path = path |
70 | 70 | self._zip_root_dir = None |
| 71 | self._zip_file = None |
71 | 72 | |
72 | | if os.path.isdir(self._path): |
73 | | self._zip_file = None |
74 | | else: |
| 73 | if not os.path.isdir(self._path): |
75 | 74 | self._zip_file = zipfile.ZipFile(self._path) |
76 | 75 | self._check_zip_bundle() |
77 | 76 | |