[MacPorts] Migration modified

Clemens Lang cal at macports.org
Thu Feb 5 08:04:42 PST 2015


Hi,

----- On 5 Feb, 2015, at 16:10, MacPorts noreply at macports.org wrote:

> Page "Migration" was changed by heegard at yahoo.com
> Diff URL: <https://trac.macports.org/wiki/Migration?action=diff&version=83>
> Revision 83
> Comment: Fixed setrequested command
> Changes:
> -------8<------8<------8<------8<------8<------8<------8<------8<--------
> Index: Migration
> =========================================================================
> --- Migration (version: 82)
> +++ Migration (version: 83)
> @@ -47,7 +47,7 @@
>       If you saved the list of requested ports, you can now restore the requested
>       flags for your newly installed ports to their former states.
>       {{{
>       sudo port unsetrequested installed
> -      < requested.txt xargs sudo port setrequested
> +      cat requested.txt | xargs sudo port setrequested
>       }}}


Strictly speaking this change was not necessary. "< requested.txt" already redirects
input from the requested.txt file, just as "cat requested.txt |" does. I doesn't
matter that "< requested.txt" is at the beginning of the line in this case.

I won't revert your change, though, because we had a couple of people that either
thought putting "< requested.txt" at the beginning of the line was illegal and that
the command must have been wrong, and consequently mangled it to a state where it
no longer worked.

While this is a useless use of cat, I'll allow it.

-- 
Clemens Lang


More information about the macports-dev mailing list