[GRASS-dev] [GRASS GIS] #1540: grass python scripts run from grass6 return 1 on success

#1540: grass python scripts run from grass6 return 1 on success
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.2
Component: Python | Version: 6.4.2 RCs
Keywords: qgis-plugin | Platform: Linux
      Cpu: x86-64 |
-------------------------+--------------------------------------------------
Hi,

as worked-around here: http://hub.qgis.org/issues/4667

grass python scripts run with grass 6.4.svn are returning 1 on exit not 0
with --help or --interface-description. (maybe other ways too)
the modules seem to otherwise run fine.

in grass7 the exits codes are ok.

e.g. install the v.transects.py script from addons or try
{{{
  $GISBASE/etc/gui/scripts/g.extension.py --help
  echo $?
}}}

???!

Hamish

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

#1540: grass python scripts run from grass6 return 1 on success
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: martinl
     Type: defect | Status: assigned
Priority: blocker | Milestone: 6.4.2
Component: Python | Version: 6.4.2 RCs
Keywords: qgis-plugin | Platform: Linux
      Cpu: x86-64 |
-------------------------+--------------------------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
  * owner: grass-dev@… => martinl
  * status: new => assigned
  * priority: major => blocker

Comment:

Hopefully fixed r50240 (`devbr6`). After some testing should be backported
to `relbr64`

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

#1540: grass python scripts run from grass6 return 1 on success
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: martinl
     Type: defect | Status: assigned
Priority: blocker | Milestone: 6.4.2
Component: Python | Version: 6.4.2 RCs
Keywords: qgis-plugin | Platform: Linux
      Cpu: x86-64 |
-------------------------+--------------------------------------------------

Comment(by brushtyler):

Replying to [comment:1 martinl]:
> Hopefully fixed r50240 (`devbr6`). After some testing should be
backported to `relbr64`
It works here, I've also updated the QGis ticket
[http://hub.qgis.org/issues/4667\].

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

#1540: grass python scripts run from grass6 return 1 on success
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: martinl
     Type: defect | Status: assigned
Priority: blocker | Milestone: 6.4.2
Component: Python | Version: 6.4.2 RCs
Keywords: qgis-plugin | Platform: Linux
      Cpu: x86-64 |
-------------------------+--------------------------------------------------

Comment(by martinl):

Replying to [comment:2 brushtyler]:
> Replying to [comment:1 martinl]:
> > Hopefully fixed r50240 (`devbr6`). After some testing should be
backported to `relbr64`
> It works here, I've also updated the QGis ticket
[http://hub.qgis.org/issues/4667\].

done in r50263

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

#1540: grass python scripts run from grass6 return 1 on success
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: martinl
     Type: defect | Status: assigned
Priority: blocker | Milestone: 6.4.2
Component: Python | Version: 6.4.2 RCs
Keywords: qgis-plugin | Platform: Linux
      Cpu: x86-64 |
-------------------------+--------------------------------------------------

Comment(by martinl):

Replying to [comment:3 martinl]:
> Replying to [comment:2 brushtyler]:
> > Replying to [comment:1 martinl]:
> > > Hopefully fixed r50240 (`devbr6`). After some testing should be
backported to `relbr64`
> > It works here, I've also updated the QGis ticket
[http://hub.qgis.org/issues/4667\].
>
> done in r50263

can you confirm it also for G64?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1540#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1540: grass python scripts run from grass6 return 1 on success
----------------------+-----------------------------------------------------
  Reporter: hamish | Owner: martinl
      Type: defect | Status: closed
  Priority: blocker | Milestone: 6.4.2
Component: Python | Version: 6.4.2 RCs
Resolution: fixed | Keywords: qgis-plugin
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

Comment:

Closing. Feel free to re-open if needed.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1540#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>