summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-15 11:04:25 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-15 11:04:25 +0000
commit5b70085515efcbccbcdcf7f8f5588a992642161c (patch)
tree17d344460da7d935c0b7b177c782250b43684f9f /net-misc/ser
parentAdd a html USE flag, to generate pms as HTML as well. Patch by David Leverton. (diff)
downloadgentoo-2-5b70085515efcbccbcdcf7f8f5588a992642161c.tar.gz
gentoo-2-5b70085515efcbccbcdcf7f8f5588a992642161c.tar.bz2
gentoo-2-5b70085515efcbccbcdcf7f8f5588a992642161c.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 'net-misc/ser')
-rw-r--r--net-misc/ser/ChangeLog8
-rw-r--r--net-misc/ser/ser-0.9.4.ebuild9
-rw-r--r--net-misc/ser/ser-0.9.6.ebuild9
-rw-r--r--net-misc/ser/ser-0.9.7.ebuild9
4 files changed, 28 insertions, 7 deletions
diff --git a/net-misc/ser/ChangeLog b/net-misc/ser/ChangeLog
index bde6ef02faaf..af15eae73833 100644
--- a/net-misc/ser/ChangeLog
+++ b/net-misc/ser/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/ser
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ChangeLog,v 1.29 2008/05/21 18:59:53 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ChangeLog,v 1.30 2008/06/15 11:04:25 zmedico Exp $
+
+ 15 Jun 2008; Zac Medico <zmedico@gentoo.org> ser-0.9.4.ebuild,
+ ser-0.9.6.ebuild, ser-0.9.7.ebuild:
+ Bug #226505 - For compatibility with phase execution order in
+ >=portage-2.1.5, call has_version inside pkg_preinst instead of
+ pkg_postinst.
21 May 2008; Tiziano Müller <dev-zero@gentoo.org> ser-0.9.4.ebuild,
ser-0.9.6.ebuild, ser-0.9.7.ebuild:
diff --git a/net-misc/ser/ser-0.9.4.ebuild b/net-misc/ser/ser-0.9.4.ebuild
index 005416d4701f..8ab3aa91511a 100644
--- a/net-misc/ser/ser-0.9.4.ebuild
+++ b/net-misc/ser/ser-0.9.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ser-0.9.4.ebuild,v 1.7 2008/05/21 18:59:53 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ser-0.9.4.ebuild,v 1.8 2008/06/15 11:04:25 zmedico Exp $
inherit eutils flag-o-matic
@@ -156,8 +156,13 @@ src_install () {
${D}/usr/share/man/*/*
}
+pkg_preinst() {
+ has_version "${CATEGORY}/${PN}"
+ previous_installed_version=$?
+}
+
pkg_postinst() {
- if has_version ${CATEGORY}/${PN}; then
+ if [[ $previous_installed_version = 0 ]] ; then
einfo "Changing permissions on ${ROOT}etc/ser"
chown -R root:ser ${ROOT}/etc/ser
diff --git a/net-misc/ser/ser-0.9.6.ebuild b/net-misc/ser/ser-0.9.6.ebuild
index 24689c473f10..b001d5cf005c 100644
--- a/net-misc/ser/ser-0.9.6.ebuild
+++ b/net-misc/ser/ser-0.9.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ser-0.9.6.ebuild,v 1.5 2008/05/21 18:59:53 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ser-0.9.6.ebuild,v 1.6 2008/06/15 11:04:25 zmedico Exp $
inherit eutils flag-o-matic toolchain-funcs multilib
@@ -155,8 +155,13 @@ src_install () {
"${D}"/usr/share/man/*/* || die
}
+pkg_preinst() {
+ has_version "${CATEGORY}/${PN}"
+ previous_installed_version=$?
+}
+
pkg_postinst() {
- if has_version ${CATEGORY}/${PN}; then
+ if [[ $previous_installed_version = 0 ]] ; then
einfo "Changing permissions on ${ROOT}etc/ser"
chown -R root:ser "${ROOT}"/etc/ser
diff --git a/net-misc/ser/ser-0.9.7.ebuild b/net-misc/ser/ser-0.9.7.ebuild
index 4d1bb9cf1875..db9753253999 100644
--- a/net-misc/ser/ser-0.9.7.ebuild
+++ b/net-misc/ser/ser-0.9.7.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ser-0.9.7.ebuild,v 1.2 2008/05/21 18:59:53 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ser-0.9.7.ebuild,v 1.3 2008/06/15 11:04:25 zmedico Exp $
inherit eutils flag-o-matic toolchain-funcs multilib
@@ -164,8 +164,13 @@ src_install () {
"${D}"/usr/share/man/*/* || die
}
+pkg_preinst() {
+ has_version "${CATEGORY}/${PN}"
+ previous_installed_version=$?
+}
+
pkg_postinst() {
- if has_version ${CATEGORY}/${PN}; then
+ if [[ $previous_installed_version = 0 ]] ; then
einfo "Changing permissions on ${ROOT}etc/ser"
chown -R root:ser "${ROOT}"/etc/ser