diff options
author | Torsten Veller <tove@gentoo.org> | 2009-10-07 09:19:30 +0000 |
---|---|---|
committer | Torsten Veller <tove@gentoo.org> | 2009-10-07 09:19:30 +0000 |
commit | 9742e147c3f338bdbd360b83930f6040fda262ca (patch) | |
tree | f2012c294cbd9a2a760d1d9b7d82ee3c27c75ed3 /sys-devel | |
parent | Version bump. Because they masked me the mdf2iso :] (diff) | |
download | gentoo-2-9742e147c3f338bdbd360b83930f6040fda262ca.tar.gz gentoo-2-9742e147c3f338bdbd360b83930f6040fda262ca.tar.bz2 gentoo-2-9742e147c3f338bdbd360b83930f6040fda262ca.zip |
Different way to remove libperl link. Needed for perserve-libs
(Portage version: 2.2_rc43/cvs/Linux x86_64)
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/libperl/ChangeLog | 5 | ||||
-rw-r--r-- | sys-devel/libperl/libperl-5.10.1.ebuild | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/sys-devel/libperl/ChangeLog b/sys-devel/libperl/ChangeLog index a2770c4eb2ef..f0053f5bd725 100644 --- a/sys-devel/libperl/ChangeLog +++ b/sys-devel/libperl/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-devel/libperl # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/ChangeLog,v 1.141 2009/09/27 11:00:50 tove Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/ChangeLog,v 1.142 2009/10/07 09:19:30 tove Exp $ + + 07 Oct 2009; Torsten Veller <tove@gentoo.org> libperl-5.10.1.ebuild: + Different way to remove libperl link. Needed for perserve-libs 27 Sep 2009; Torsten Veller <tove@gentoo.org> libperl-5.10.1.ebuild: Remove orphaned symbolic link diff --git a/sys-devel/libperl/libperl-5.10.1.ebuild b/sys-devel/libperl/libperl-5.10.1.ebuild index 555e008ab09d..19749c4545fb 100644 --- a/sys-devel/libperl/libperl-5.10.1.ebuild +++ b/sys-devel/libperl/libperl-5.10.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/libperl-5.10.1.ebuild,v 1.2 2009/09/27 11:00:50 tove Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/libperl/libperl-5.10.1.ebuild,v 1.3 2009/10/07 09:19:30 tove Exp $ inherit multilib @@ -16,9 +16,8 @@ IUSE="" PDEPEND=">=dev-lang/perl-5.10.1" pkg_postinst() { - if [[ -h ${ROOT}/usr/$(get_libdir )/libperl$(get_libname) && \ - ! -e ${ROOT}/usr/$(get_libdir )/libperl$(get_libname) ]] ; then - einfo "Remove symbolic link: ${ROOT}usr/$(get_libdir)/libperl$(get_libname)" + if [[ $(readlink "${ROOT}/usr/$(get_libdir )/libperl$(get_libname)" ) == libperl$(get_libname).1 ]] ; then + einfo "Removing stale symbolic link: ${ROOT}usr/$(get_libdir)/libperl$(get_libname)" rm "${ROOT}"/usr/$(get_libdir )/libperl$(get_libname) fi } |