[csw-maintainers] Need some Feedback

Mike Watters mwatters at opencsw.org
Wed May 20 02:57:13 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Phil,
Philip Brown wrote:
> Although you MIGHT want to declare a special script, and declare it as
> type "i", such as
> 
> i cswpurge
> 
> in your prototype file.
> 
> Then at such time as pkgutil and pkg-get support a "purge" call, they can
> call it after doing pkgrm, if the user says "yes, 'purge' anything to
> do with this package when I remove it".

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]


- --
Thanks,
Mike

"Any intelligent fool can make things bigger, more complex,
and more violent.  It takes a touch of genius -- and a lot of courage --
to move in the opposite direction."

* Albert Einstein 1879 - 1955
    US German-born Theoretical Physicist
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkoTVWkACgkQLrhmsXMSLxfXFQCgsv46HfdcQXHUgo9qmBavw7FG
wQ8AnjXPGY3JX6bHTbgKBBAupz62YDvF
=Cg9K
-----END PGP SIGNATURE-----



More information about the maintainers mailing list