[MacPorts] #14928: 'port install BAD' returns 0 error code
#14928: 'port install BAD' returns 0 error code ---------------------------+------------------------------------------------ Reporter: bulk@modp.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | ---------------------------+------------------------------------------------ Hi, Is this the correct behavior for macports 1.6.0? I would have guessed a non-0 error code. {{{ $ port install BAD Error: Port BAD not found $ echo $? 0 }}} This makes scripting and testing for errors difficult. thanks, --nickg -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14928> MacPorts </projects/macports> Ports system for Mac OS
#14928: 'port install BAD' returns 0 error code ----------------------------+----------------------------------------------- Reporter: bulk@modp.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: ----------------------------+----------------------------------------------- Comment (by raimue@macports.org): Use the -x flag. port will break at the first error and return the expected non-zero error code. But I agree that this could be improved. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14928#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14928: 'port install BAD' should return non-0 error code ----------------------------+----------------------------------------------- Reporter: bulk@modp.com | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts base enhancements Component: base | Version: 1.7.0 Resolution: | Keywords: ----------------------------+----------------------------------------------- Changes (by jmr@macports.org): * type: defect => enhancement * summary: 'port install BAD' returns 0 error code => 'port install BAD' should return non-0 error code * component: ports => base * version: 1.6.0 => 1.7.0 * milestone: => MacPorts base enhancements Comment: This is a base issue, and also applies to trunk. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14928#comment:2> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts