On 7/27/07, Daniel J. Luke <dluke@geeklair.net> wrote:
On Jul 26, 2007, at 8:05 PM, Xin Liu wrote:
I think an easier and safer way of is to modify the logic in macports::upgrade{} such that when it tries to upgrade things in $portinfo(depends_build), $portinfo(depends_run) and $portinfo(depends_lib), for every bin/lib style dependency, it does one of the following: 1) if the bin/lib file does not exist, install the corresponding port (the port specified at the end of the bin/lib style); 2) if the bin/lib file exists and the corresponding port is installed, upgrade the corresponding port; 3) otherwise, do nothing.
That would probably work ... (at least, it addresses the concern that I had).
If you want to make a patch to have it work that way, I'd be happy to review it.
I'll try it. But I'm not a good programmer... Anyone is welcome to do it. Best Regards, Xin Liu