>
> I use the following Python script to upgrade ten packages each time:
>
> $ cat bin/opkg_upgrade_10.py
> #!/usr/bin/python
>
> CNT=10
>
> import os
> from itertools import islice
> from subprocess import call
>
> f = iter(os.popen('opkg list_upgradable', 'r'))
> while True:
>    pkgs = [s.split(' ', 1)[0] for s in islice(f, CNT)]
>    if not pkgs:
>        break
>    cmd = ['opkg', 'install'] + pkgs
>    print ' '.join(cmd)
>    call(cmd)
>
>>
>> solar.george
> _______________________________________________
> Shr-User mailing list
> [email protected]
> http://lists.shr-project.org/mailman/listinfo/shr-user
>

Thank you Lukasz , this really does the trick :) no more segfaults to
massive upgrades :)

-- 
David Reyes Samblas Martinez
http://www.tuxbrain.com
Open ultraportable & embedded solutions
Openmoko, Openpandora,  Arduino
Hey, watch out!!! There's a linux in your pocket!!!
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to