Talk:TIP Easy cleaning of package.keywords
From Gentoo Linux Wiki
> Warning: you have to put 'LOCAL_PORTAGE_CONFIG=false' in ...
on my sys this had no effect / 'LOCAL_PORTAGE_CONFIG="false"' worked - change in this wiki? i have eix 0.3.0-r2 (last stable v atm). --Ligi 11:22, 21 December 2005 (GMT)
> atoms=`cat /etc/portage/package.keywords | grep -P "[a-z]*\-[a-z]*\/.*~x86$" | sed 's/\s*~x86$//'` ## get all atoms
i would change this to atoms=`cat /etc/portage/package.keywords | grep -P "^[a-z]*\-[a-z]*\/.*~x86$" | sed 's/\s*~x86$//'` ## get all atoms so that commented (#) lines do not produce "Problem!"--Ligi 11:32, 21 December 2005 (GMT)
[edit] Changes to my script
The script has been changed by someone else so it no longer works. I do not have the rights to do a rollback, could someone do that?
Mati 17:35, 17 March 2006 (GMT)
[edit] Handling of numbers in package category
In order to take into account numbers in the package category (eg "x11-drivers"), lines 12 and 44 may be changed to:
package=`echo $line | cut -d" " -f1 | sed -e 's/^[<>=]*[a-z0-9]*\-[a-z0-9]*\///' -e 's/\-[0-9].*$//'`
