1 |
On Friday 26 November 2004 10:01, Andrea Carpani wrote: |
2 |
> Hi everybody, I'm writing a custom ebuild and I'd like some actions to |
3 |
> be taken only when a package is removed from my system. |
4 |
> At first I thought that pkg_postrm was the answer, but I discovered |
5 |
> that the function is also executed during an upgrade when the older |
6 |
> version is removed. |
7 |
> I can't check has_version because at "pkg_postrm" time the package I'm |
8 |
> removing seems still registered. |
9 |
|
10 |
What about |
11 |
if has_version \<$PF || has_version \>$PF; then |
12 |
fi |
13 |
|
14 |
btw. What kind of action would that be? |
15 |
|
16 |
Paul |
17 |
|
18 |
-- |
19 |
Paul de Vrieze |
20 |
Gentoo Developer |
21 |
Mail: pauldv@g.o |
22 |
Homepage: http://www.devrieze.net |