[GRASS-dev] [GRASS GIS] #3902: g.extension problem: multiple entries, slowing down GRASS startup

#3902: g.extension problem: multiple entries, slowing down GRASS startup
-------------------------+-------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.8.0
Component: Python | Version: unspecified
Keywords: g.extension | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
Apparently something went wrong in the latest updates to g.extension:

{{{
GRASS 7.8.dev (nc_spm_08):~ > g.extension -a | sort
List of installed extensions (modules):
i.pysptools.unmix
i.pysptools.unmix
i.pysptools.unmix
i.pysptools.unmix
i.pysptools.unmix
i.pysptools.unmix
i.pysptools.unmix
i.pysptools.unmix
i.pysptools.unmix
i.pysptools.unmix
i.sentinel
i.sentinel.download
i.sentinel.download
i.sentinel.download
i.sentinel.import
i.sentinel.import
i.sentinel.import
i.sentinel.mask
i.sentinel.mask
i.sentinel.mask
i.sentinel.preproc
i.sentinel.preproc
i.sentinel.preproc
...
}}}

Somehow, there is a undesired loop.

Since the list of local extensions is scanned at startup time, it is now
REALLY slow when you have a number of extensions installed.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3902&gt;
GRASS GIS <https://grass.osgeo.org>

#3902: g.extension problem: multiple entries, slowing down GRASS startup
--------------------------+-------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.8.1
Component: Python | Version: unspecified
Resolution: | Keywords: g.extension
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by AnikaBettge):

Do not write metadata if the addons already exists in the metadata file:
https://github.com/OSGeo/grass/pull/138

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3902#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3902: g.extension problem: multiple entries, slowing down GRASS startup
--------------------------+---------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.8.1
Component: Python | Version: git-releasebranch78
Resolution: fixed | Keywords: g.extension
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------
Changes (by neteler):

* status: new => closed
* version: unspecified => git-releasebranch78
* resolution: => fixed

Comment:

Fix merged in

* master:
https://github.com/OSGeo/grass/commit/086056692fd6438866854c056ee335c4335f9b56
* relbr78:
https://github.com/OSGeo/grass/commit/b6c9f9b7dc7ed9ec7aeaaed93e220b1d93140c36

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3902#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>