diff options
author | Mark Loeser <halcy0n@gentoo.org> | 2009-01-01 20:59:23 +0000 |
---|---|---|
committer | Mark Loeser <halcy0n@gentoo.org> | 2009-01-01 20:59:23 +0000 |
commit | f7c99e9bf528c42e594c6df09bc4b11935286f42 (patch) | |
tree | 87c04d7b2c9d7c69d05db05b5388c73aac33aa6e | |
parent | Use PORTAGE_BUILDDIR instead of PORTAGE_TMPDIR. Fixes bug #251698. (diff) | |
download | devmanual-f7c99e9bf528c42e594c6df09bc4b11935286f42.tar.gz devmanual-f7c99e9bf528c42e594c6df09bc4b11935286f42.tar.bz2 devmanual-f7c99e9bf528c42e594c6df09bc4b11935286f42.zip |
You can't call has_version in pkg_postinst anymore and get the version that was installed; bug #226419
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/devmanual/trunk@136 176d3534-300d-0410-8db8-84e73ed771c3
-rw-r--r-- | ebuild-writing/functions/pkg_postinst/text.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ebuild-writing/functions/pkg_postinst/text.xml b/ebuild-writing/functions/pkg_postinst/text.xml index accfc16..8b86c4c 100644 --- a/ebuild-writing/functions/pkg_postinst/text.xml +++ b/ebuild-writing/functions/pkg_postinst/text.xml @@ -45,7 +45,7 @@ pkg_postinst() <body> <codesample lang="ebuild"> pkg_postinst() { - if has_version '<x11-wm/fluxbox-0.9.10-r3' ; then + if $OLD_FLUXBOX_VERSION ; then ewarn "You must restart fluxbox before using the [include] /directory/" ewarn "feature if you are upgrading from an older fluxbox!" ewarn " " @@ -63,10 +63,10 @@ pkg_postinst() { <body> <p> The most common use for <c>pkg_postinst</c> is to display post-install -informational messages or warnings. Note that <c>has_version</c> will -operate on the version that <e>was</e> installed, which can be useful -for selective upgrade messages. -</p> +informational messages or warnings. If you want to display selective +upgrade messages, you should do the call to <c>has_version</c> in an +earlier phase, like <c>pkg_preinst</c>, and store the result in a global +variable.</p> </body> </section> |