[MacPorts] #13918: port activate returns 0 exit code even when unsuccessful
#13918: port activate returns 0 exit code even when unsuccessful -------------------------------------+-------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | -------------------------------------+-------------------------------------- The p5-pathtools port, for example, requires that you activate it with the `-f` flag to force it to overwrite files installed by the perl5.8 port. If you do not do this, you get an error message and the p5-pathtools port does not activate. However, unexpectedly, the exit code of the `port` command is still 0. The exit code should be nonzero, since the command did not successfully complete. {{{ $ sudo port activate p5-pathtools @3.25_0 ---> Activating p5-pathtools 3.25_0 Error: port activate failed: Image error: /opt/local/lib/perl5/5.8.8 /darwin-2level/auto/Cwd/Cwd.bs is being used by the active perl5.8 port. Please deactivate this port first, or use the -f flag to force the activation. $ echo $? 0 $ }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13918> MacPorts </projects/macports> Ports system for Mac OS
#13918: port activate returns 0 exit code even when unsuccessful --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.7.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Changes (by ryandesign@macports.org): * component: ports => base * milestone: Port Bugs => MacPorts base bugs -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13918#comment:1> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts