Hi,

attached is a patch for emaint contained in the sys-apps/portage-2.1_pre4-r1 
package that adds support for checking and fixing redundant entries in 
package.keywords and package.unmask.

Fixing those files is done by commenting out corresponding lines (as suggested 
by Simon Stelling, thanks!)

I added two handlers, one for package.keywords, one for package.unmask, as I 
like to check and fix them seperately. Though I don't think, that I shared 
their code pretty nice. I have experience in c++ but ...

CODING DISCLAIMER
... I am pretty new to portage and python coding, so please forgive me my 
quirks and critizise me constructive :-).

Get back to me if you have questions.

Running amd64 makes me have quite large package.{keywords.unmaks} files and it 
seems to work quite good on my system. I am testing the results using another 
little tool I wrote which finds installed packages, that are either masked 
(all kinds) or their .ebuild is missing. This is an easy way to test the 
results of the features added by this patch. I am goning to submit  another 
patch for emaint containing this " feature in the future, as soon as I  
integrated it into emaint. 

Thanks for reading :-)

take care, have fun
/christian


Attachment: emaint-2.1_pre4-r1.patch.bz2
Description: BZip2 compressed data

Attachment: pgpZ32gDKRwK1.pgp
Description: PGP signature

Reply via email to