You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I understand the idea correctly, a plugin ZIP-file should have exactly one plugin top-level folder. Not more than one. If my understanding is correct, there is an issue in the validation: It only checks the "first" top level folder and does not care if there is more than one. (The current plugin installer in QGIS on the other hand also does not check if there is more than one sub-folder and just unpacks everything.)
namelist=zip.namelist()
try:
package_name=namelist[0][:namelist[0].index('/')] # PROBLEMATIC SECTIONexcept:
raiseValidationError( _("Cannot find a folder inside the compressed package: this does not seems a valid plugin") )
ifpackage_name.endswith('/'):
package_name=package_name[:-1]
initname=package_name+'/__init__.py'metadataname=package_name+'/metadata.txt'
If I understand the idea correctly, a plugin ZIP-file should have exactly one plugin top-level folder. Not more than one. If my understanding is correct, there is an issue in the validation: It only checks the "first" top level folder and does not care if there is more than one. (The current plugin installer in QGIS on the other hand also does not check if there is more than one sub-folder and just unpacks everything.)
Relevant code in repository
The text was updated successfully, but these errors were encountered: