1 |
On Wed, 31 Mar 2010 22:29:50 +0200 |
2 |
Sebastian Pipping <sping@g.o> wrote: |
3 |
> On 03/31/10 22:19, Ciaran McCreesh wrote: |
4 |
> >> Is there some kind of evilness in this usage of has_version that I |
5 |
> >> am not aware of? |
6 |
> > |
7 |
> > Unfortunately, yes. |
8 |
> > |
9 |
> > Historically, has_version in pkg_postinst would return results based |
10 |
> > upon the version that *was* installed. |
11 |
> |
12 |
> What's status quo? What did it switch to? |
13 |
|
14 |
Now you really need to use REPLACING_VERSIONS to do it cleanly, but |
15 |
that's only in EAPI 4, which still isn't implemented in Portage. As a |
16 |
hack, you can instead do the has_version check in pkg_preinst and use |
17 |
environment variable saving to get the result in pkg_postinst. It is |
18 |
not exactly pretty. |
19 |
|
20 |
-- |
21 |
Ciaran McCreesh |