Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, remi@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-python/pygtksourceview: metadata.xml pygtksourceview-2.0.0.ebuild Manifest ChangeLog
Date: Wed, 10 Oct 2007 22:37:22
Message-Id: 20071010222449.GG19824@supernova
1 On 21:22 Wed 10 Oct , Remi Cardona (remi) wrote:
2 > 1.1 dev-python/pygtksourceview/pygtksourceview-2.0.0.ebuild
3 >
4 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtksourceview/pygtksourceview-2.0.0.ebuild?rev=1.1&view=markup
5 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtksourceview/pygtksourceview-2.0.0.ebuild?rev=1.1&content-type=text/plain
6
7 > pkg_postinst() {
8 > python_version
9 > python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/
10 > }
11 >
12 > pkg_postrm() {
13 > python_version
14 > python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/
15 > }
16
17 I think the python_mod_ functions take care of running python_version()
18 ... also have you noticed that you're optimizing in postrm instead of
19 cleaning up?
20
21 Thanks,
22 Donnie
23 --
24 gentoo-dev@g.o mailing list

Replies