diff options
author | 2008-06-15 10:44:02 +0000 | |
---|---|---|
committer | 2008-06-15 10:44:02 +0000 | |
commit | f57c8645c827ca5b46cf8b3470378da79ca332e6 (patch) | |
tree | d95d29b5b28302ce5f60c46772189f9a9aa5951b /net-misc/freenet6/freenet6-5.0.ebuild | |
parent | Masking vmware-workstation-4.5.3 for removal. (diff) | |
download | historical-f57c8645c827ca5b46cf8b3470378da79ca332e6.tar.gz historical-f57c8645c827ca5b46cf8b3470378da79ca332e6.tar.bz2 historical-f57c8645c827ca5b46cf8b3470378da79ca332e6.zip |
Bug #226505 - For compatibility with phase execution order in
>=portage-2.1.5, call has_version inside pkg_preinst instead of
pkg_postinst.
Package-Manager: portage-2.2_pre10652/cvs/Linux 2.6.25-0518-x86-64 i686
Diffstat (limited to 'net-misc/freenet6/freenet6-5.0.ebuild')
-rw-r--r-- | net-misc/freenet6/freenet6-5.0.ebuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net-misc/freenet6/freenet6-5.0.ebuild b/net-misc/freenet6/freenet6-5.0.ebuild index a3eeeb441e39..e9306e9c8f7b 100644 --- a/net-misc/freenet6/freenet6-5.0.ebuild +++ b/net-misc/freenet6/freenet6-5.0.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/freenet6/freenet6-5.0.ebuild,v 1.6 2008/04/29 12:49:33 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/freenet6-5.0.ebuild,v 1.7 2008/06/15 10:44:02 zmedico Exp $ inherit eutils versionator @@ -38,8 +38,13 @@ src_install() { doman man/{man5/gw6c.conf.5,man8/gw6c.8} } +pkg_preinst() { + has_version "=${CATEGORY}/${PN}-1*" + upgrade_from_1_x=$? +} + pkg_postinst() { - if has_version '=net-misc/freenet6-1*' ; then + if [[ $upgrade_from_1_x = 0 ]] ; then ewarn "Warning: you are upgrading from an older version" ewarn "The configuration file has been renamed to gw6c.conf" ewarn "Remember to port your personal settings from tspc.conf to it" |