266 return False, \ |
266 return False, \ |
267 self.trUtf8("""<p>The destination directory <b>{0}</b> is not """ |
267 self.trUtf8("""<p>The destination directory <b>{0}</b> is not """ |
268 """writeable. Aborting...</p>""").format(destination), \ |
268 """writeable. Aborting...</p>""").format(destination), \ |
269 False |
269 False |
270 |
270 |
271 zip = zipfile.ZipFile(archive, "rb") |
271 zip = zipfile.ZipFile(archive, "r") |
272 |
272 |
273 # check, if the archive contains a valid plugin |
273 # check, if the archive contains a valid plugin |
274 pluginFound = False |
274 pluginFound = False |
275 pluginFileName = "" |
275 pluginFileName = "" |
276 for name in zip.namelist(): |
276 for name in zip.namelist(): |