[Pkg-sugar-commit] [sugar-toolkit] 02/10: Cannot delete stalled download from journal #1987
Jonas Smedegaard
dr at jones.dk
Thu Apr 16 18:49:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.84.11-1
in repository sugar-toolkit.
commit 249d9b0de169d01bf4c794b1b730885734c92535
Author: Simon Schampijer <simon at schampijer.de>
Date: Mon Jun 7 13:45:36 2010 +0200
Cannot delete stalled download from journal #1987
- backported from 0.88
- initial patch from Aleksey Lim
---
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 a1b2686..5cf1c0b 100644
--- a/src/sugar/bundle/bundle.py
+++ b/src/sugar/bundle/bundle.py
@@ -61,10 +61,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()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-toolkit.git
More information about the pkg-sugar-commit
mailing list