Re: Flavor Package List Files and Package Versions

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


Hi,
> Keeping up with such version changes can be a maintenance difficulty, so I was wondering if there is a way to declare in the flavor list that the latest package version be retrieved.  I suppose one workaround might be to create meta packages, but I think that would be using them in a manner that was not intended....
what I did, is getting the packages list stripping the versions off, using sed. And then
getting the most recent versions of them, like this:
# Strip versions from package names:
sed -i "s/-[^-]*$//g" distro-packages.list

# Get current version of packages
tazpkg recharge
tazpkg list-mirror >.mirror-packages.list
for pac in $(cat distro-packages.list); do
   pacver=$(grep "^$pac-[^-]*$" .mirror-packages.list | tail -1)
   echo $pacver
   sed -i "s/^${pac}$/${pacver}/g" distro-packages.list
done
rm .mirror-packages.list

It's a little bit ugly, but working ;)

Best regards,
Harald

> 
> 
> Thank you.


-- 
Dipl.-Ing. Harald Klimach  email: klimach@xxxxxxx
HLRS, Uni Stuttgart        http://www.hlrs.de/people/klimach
Nobelstraße 19             phone: 0711-685 60300
70569 Stuttgart            fax:   0711-685 65832

---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/