[Qgis-developer] Changing folder of plugin install
Rémi Cura
remi.cura at gmail.com
Sat May 30 07:58:02 PDT 2015
Thanks to both !
I'll delete and create again the plugin.
Cheers,
Rémi-C
2015-05-30 12:59 GMT+02:00 Borys Jurgiel <lists at borysjurgiel.pl>:
> Strictly speaking, there are two separate problems:
>
> One is the name mismatch, what makes QGIS thinking that the zip available
> in
> the repo ("interactive_map_tracking") and the installed plugin
> ("interactive_map_tracking-master") are two separate plugins. As a result,
> QGIS won't inform the user about available updates.
>
> Second problem is bigger: the directory is just a Python module, and it
> crashes Python, because module names can't contain dashes. It's a Python
> syntax restriction, not QGIS. And, as Alessandro said, this is the plugin
> key,
> not the zip file name (what is basically much less important) so changing
> it
> would be quite complicated.
>
> Hopefully removing the plugin and creating again will be straightforward.
>
> Best Regards,
>
> Borys
>
>
>
> Dnia piątek, 29 maja 2015 15:34:16 Rémi Cura pisze:
> > I'm afraid I can't,
> > currently it creates a bug !
> > When installing from QGIS plugin repository,
> > it gives an error message.
> > This error message would be because the plugin name and folder name are
> > different.
> > So one way or another, the folder name has to be changed to match the
> > plugin name !
> >
> > So you see we don't have much choice here...
> > Cheers,
> > Rémi-C
> >
> > 2015-05-29 15:17 GMT+02:00 Alessandro Pasotti <apasotti at gmail.com>:
> > > 2015-05-29 14:52 GMT+02:00 Rémi Cura <remi.cura at gmail.com>:
> > >> Hey, thanks for the super-quick answer.
> > >>
> > >> Can't we just change the plugin database for this plugin?
> > >> Surely there is a way to do it manually !
> > >
> > > Yes, but it's not trivial.
> > >
> > >> Or simply change the folder name on the server?
> > >> Deleting the plugin make it loose all the history, which I find quit
> bad.
> > >>
> > >> Also, if the consequences are so dire, wouldn't is be necessary to
> check
> > >> at import that plugin name and folder name match?
> > >
> > > Sorry for the quick (and wrong) answer :)
> > >
> > > I checked the exact constraint: the package name (the name of the fist
> > > folder in the zip file) is independent from the plugins name and
> cannot be
> > > changed (while the plugin name, visible to the user, can change) the
> > > package name is a unique key used internally to build the URLs and to
> > > retrieve plugin packages and is kept unique to make sure that there
> are no
> > > plugins with the same package name.
> > >
> > > The problem here is that it cannot be easily changed without breaking a
> > > lot of things.
> > >
> > > You can just stick with the old package/folder name, it will be just
> > > visible in the URLs.
> > >
> > >
> > > --
> > > Alessandro Pasotti
> > > w3: www.itopen.it
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150530/bc435fd3/attachment-0001.html>
More information about the Qgis-developer
mailing list