Ticket #1987: 1987.patch

File 1987.patch, 562 bytes (added by erikos, 14 years ago)

Patch for 0.84

  • src/sugar/bundle/bundle.py

    diff --git a/src/sugar/bundle/bundle.py b/src/sugar/bundle/bundle.py
    index a1b2686..5cf1c0b 100644
    a b class Bundle(object): 
    6161    def __init__(self, path):
    6262        self._path = path
    6363        self._zip_root_dir = None
     64        self._zip_file = None
    6465
    65         if os.path.isdir(self._path):
    66             self._zip_file = None
    67         else:
     66        if not os.path.isdir(self._path):
    6867            self._zip_file = zipfile.ZipFile(self._path)
    6968            self._check_zip_bundle()
    7069