[MacPorts] #13918: port activate returns 0 exit code even when unsuccessful

MacPorts trac at macosforge.org
Mon Jan 14 00:34:48 PST 2008


#13918: port activate returns 0 exit code even when unsuccessful
-------------------------------------+--------------------------------------
 Reporter:  ryandesign at macports.org  |       Owner:  macports-tickets at 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


More information about the macports-tickets mailing list