[mapguide-trac] #1035: Build_oem.sh and build_apt.sh are not returning correct error codes

MapGuide Open Source trac_mapguide at osgeo.org
Fri Jul 17 12:29:43 EDT 2009


#1035: Build_oem.sh and build_apt.sh are not returning correct error codes
----------------------------+-----------------------------------------------
   Reporter:  tomfukushima  |       Owner:  tomfukushima
       Type:  defect        |      Status:  new         
   Priority:  medium        |   Milestone:  2.2         
  Component:  Build System  |     Version:  2.1.0       
   Severity:  trivial       |    Keywords:              
External_id:                |  
----------------------------+-----------------------------------------------
 The scripts have some check_xxx methods that look at the error code
 returned by the last operation and then return and exit on a failure.
 However, the exit code that is being returned is always 0 because of some
 flaw in the logic.  That is, the error code needs to be stored in a
 variable, before it gets cleared by the execution of another statement (in
 this case, the "if" statement clears it).

 Dan Seeman found this error and suggested a fix.

 This fix is important for a continuous build system to work; it needs
 proper exit codes coming back.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1035>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list