On 2017-04-12 16:02, db wrote: > On 11 Apr 2017, at 22:36, db <[email protected]> wrote: >> Without arguments shows this warning >> >> $ port-depgraph >> Warning: It looks like your PortIndex file for file:///opt/local/myports may >> be corrupt. >> Warning: It looks like your PortIndex file for >> file:///opt/local/var/macports/sources/github.com/macports/macports-ports/ >> may be corrupt. >> Error: <stdin>: syntax error in line 1 near 'Warning' > > I realised that I have port-depgraph aliased, so running it without args > throws that warning. > > alias port-depgraph=' _() { port-depgraph "$1" | dot -T png -o > "$1"_depgraph.png ; } ; _ '
You are effectively running it with an empty argument, which is not a valid port name: $ port-depgraph "" That could indeed be handled more graceful. The source can be found here after the move to GitHub: https://github.com/macports/macports-contrib/tree/master/port-depgraph Rainer
