Skip to content
Permalink
Browse files
Fix for ticket #890 "python plugin installer unzip fails"
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7859 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jan 8, 2008
1 parent 3eefa8e commit a27dde788767f8b1672787b9f670ef88166ecf6b
Showing with 9 additions and 0 deletions.
  1. +9 −0 python/plugins/plugin_installer/qgis_plugins.py
@@ -86,6 +86,15 @@ def _listdirs(self, file):
if name.endswith('/'):
dirs.append(name)

if len(dirs) == 0:
# this means there is no top level directory in the
# zip file. We'll assume the first entry contains the
# directory and use it
entry = zf.namelist()[0]
dir = entry.split('/')[0]
dir += '/'
dirs.append(dir)

dirs.sort()
return dirs

0 comments on commit a27dde7

Please sign in to comment.