Forced to use +universal

Aljaž Srebrnič a2piratesoft at gmail.com
Fri Mar 2 09:15:51 PST 2012


On 02/mar/2012, at 18:03, Anthony Bak wrote:

> Almost. This works for me:
> 
> port installed | grep universal| sed -e 's/@.*\+/-universal/' -e
> 's/\+universal/-universal/' -e 's/(active)//' | xargs sudo port
> upgrade --enforce-variants
> 
> On Fri, Mar 2, 2012 at 8:40 AM, Aljaž Srebrnič <a2piratesoft at gmail.com> wrote:
>> On 02/mar/2012, at 17:17, Anthony Bak wrote:
>> 
>> 
>> 
>> Hey!
>>  i believe something like this:
>> $ port installed | grep universal | sed -e 's/@.*\+/+/' -e 's/\+universal/-universal/' -e 's/(active)//' | xargs sudo port upgrade --enforce-variants
>> 
>> will update all your universal ports.
>> 
>> Regards,
>> Aljaž Srebrnič
>> -- --
>> My public key:  http://bit.ly/g5pw_pubkey
>> 


Well, that works alright, but it *could* not preserve other variants (if you have installed ports with universal AND other variants active)
I got it to work with this:
port installed | grep '\+universal' | sed -e 's/@.*\+/+/' -e 's/\+universal/-universal/' -e 's/(active)//' | xargs sudo port upgrade --enforce-variants

Aljaž Srebrnič
-- --
My public key:  http://bit.ly/g5pw_pubkey



More information about the macports-users mailing list