maphew / apt

command line package manager for Osgeo4W
http://trac.osgeo.org/osgeo4w/wiki/pkg-apt
GNU General Public License v2.0
4 stars 2 forks source link

Menu and Desktop links variable not used #16

Open maphew opened 9 years ago

maphew commented 9 years ago

Apt doesn't know about the %OSGEO4W_MENU_LINKS% and %OSGEO4W_DESKTOP_LINKS% variables introduced in setup.exe v1.0.6-5.

With the qgis-dev package this manifests with a mkdir was unexpected at this time. error message at the console during postinstall phase, consequently the Start Menu and Desktop shortcuts are not created, nor are the relevant registry entries created/updated.

http://trac.osgeo.org/osgeo4w/ticket/300

maphew commented 9 years ago

...inspecting the qgis-dev.bat reveals the error message is reporting a bug in that file. The comparison fails, if not %OSGEO4W_MENU_LINKS%==0 mkdir "%OSGEO4W_STARTMENU%" becomes if not ==0 which is invalid. It needs to be quoted, if not "%OSGEO4W_MENU_LINKS%"==0.

However the issue in apt remains, because we don't know about _LINKS we always create the shortcuts (for packages which aren't subject to the bug above), which disrespects those users who don't want them.

So the .bat bug revealed an apt bug, and for that I'm grateful. :)