[csw-maintainers] Need some Feedback

Philip Brown phil at bolthole.com
Wed May 20 07:59:23 CEST 2009


On Tue, May 19, 2009 at 07:57:13PM -0500, Mike Watters wrote:
> I am not sure I want to do a purge script, but that does give me an Idea.
> I can do a preremove that does a pkgchk -v on the python package and get the
> .py files and use that list to remove the pyc pyo files.
> 
> something like
> 
> pkgchk -v $PKGINST 2>&1 |grep \.py$ | xargs -i rm -f {}[co]

pkgchk can be very slow. faster to just hardcode a list of files to 
check for and remove.
(a 'hardcoded' list that could actually be autogenerated from
 the package's prototype list, at package assembly time)

If you're gonna hack, may as well make it an EFFICIENT hack ;-)




More information about the maintainers mailing list