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/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()
 
-- 
1.7.0.4

