summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-15 11:15:19 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-15 11:15:19 +0000
commit0a4b1a5831f273ca3afe449d65ed8b69f4c34e3c (patch)
tree7a2c77152ce0d83575fcf9c6b7e499617489581f /www-client
parentremove useless dodoc ABOUT-NLS (diff)
downloadgentoo-2-0a4b1a5831f273ca3afe449d65ed8b69f4c34e3c.tar.gz
gentoo-2-0a4b1a5831f273ca3afe449d65ed8b69f4c34e3c.tar.bz2
gentoo-2-0a4b1a5831f273ca3afe449d65ed8b69f4c34e3c.zip
Bug #226505 - For compatibility with phase execution order in
>=portage-2.1.5, call has_version inside pkg_preinst instead of pkg_postinst. (Portage version: 2.2_pre10652/cvs/Linux 2.6.25-0518-x86-64 i686)
Diffstat (limited to 'www-client')
-rw-r--r--www-client/surfraw/ChangeLog9
-rw-r--r--www-client/surfraw/surfraw-2.1.5.ebuild11
2 files changed, 15 insertions, 5 deletions
diff --git a/www-client/surfraw/ChangeLog b/www-client/surfraw/ChangeLog
index ccee8298ec0b..34d91b5a792b 100644
--- a/www-client/surfraw/ChangeLog
+++ b/www-client/surfraw/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-client/surfraw
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/surfraw/ChangeLog,v 1.14 2007/12/25 15:23:05 phreak Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/surfraw/ChangeLog,v 1.15 2008/06/15 11:15:19 zmedico Exp $
+
+ 15 Jun 2008; Zac Medico <zmedico@gentoo.org> surfraw-2.1.5.ebuild:
+ Bug #226505 - For compatibility with phase execution order in
+ >=portage-2.1.5, call has_version inside pkg_preinst instead of
+ pkg_postinst.
25 Dec 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
Removing seemant from metadata.xml as per #202469. Assigning to
diff --git a/www-client/surfraw/surfraw-2.1.5.ebuild b/www-client/surfraw/surfraw-2.1.5.ebuild
index 7e5c00ed58e6..462ac792896e 100644
--- a/www-client/surfraw/surfraw-2.1.5.ebuild
+++ b/www-client/surfraw/surfraw-2.1.5.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/surfraw/surfraw-2.1.5.ebuild,v 1.7 2007/10/13 01:21:52 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/surfraw/surfraw-2.1.5.ebuild,v 1.8 2008/06/15 11:15:19 zmedico Exp $
inherit bash-completion eutils
@@ -34,6 +34,11 @@ src_install() {
dobashcompletion surfraw-bash-completion
}
+pkg_preinst() {
+ has_version "=${CATEGORY}/${PN}-1.0.7"
+ upgrade_from_1_0_7=$?
+}
+
pkg_postinst() {
bash-completion_pkg_postinst
einfo
@@ -54,7 +59,7 @@ pkg_postinst() {
einfo
einfo "surfraw works with any graphical and/or text WWW browser"
einfo
- if has_version '=www-client/surfraw-1.0.7'; then
+ if [[ $upgrade_from_1_0_7 = 0 ]] ; then
ewarn "surfraw usage has changed slightly since version 1.0.7, elvi are now called"
ewarn "using the 'sr' wrapper script as described above. If you wish to return to"
ewarn "the old behaviour you can add /usr/share/surfraw to your \$PATH"