port install: Can it keep going after a failure?

Arno Hautala arno at alum.wpi.edu
Thu Mar 18 14:48:30 PDT 2010


On Thu, Mar 18, 2010 at 09:44, Rainer Müller <raimue at macports.org> wrote:
>
> Ah, sorry. I misunderstood the question then. This is not possible as
> you said before.

That's unfortunate.

This would be possible using port-rdeps though.  You could run the
following ("grep -v :" just excludes the initial "Dependencies of"
line):
port-rdeps -r A | grep -v : | xargs sudo port install

That will try to install every dependency of A.  The downside is that
a failing port may try to install multiple times, but that shouldn't
add very much to the process as each attempt should try to pickup
where the previous build failed.
It of course gets more complicated if you want to include a variant,
but this at least gets you most of the way there.  And a final "sudo
port install A" would be required to finish off the attempt if
everything else succeeded.

Would an additional flag to "continue building dependencies after
failure" or a modification to the behavior -p be possible?

-- 
arno  s  hautala    /-|   arno at alum.wpi.edu

pgp eabb6fe6 d47c500f b2458f5d a7cc7abb f81c4e00


More information about the macports-users mailing list