/[gentoo-x86]/eclass/eutils.eclass
Gentoo

Diff of /eclass/eutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.267 Revision 1.268
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.267 2007/01/09 15:47:47 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.268 2007/01/13 19:36:14 vapier Exp $
4# 4#
5# This eclass is for general purpose functions that most ebuilds 5# This eclass is for general purpose functions that most ebuilds
6# have to implement themselves. 6# have to implement themselves.
7# 7#
8# NB: If you add anything, please comment it! 8# NB: If you add anything, please comment it!
1549# preserve_old_lib_notify /usr/$(get_libdir)/libogg.so.0 1549# preserve_old_lib_notify /usr/$(get_libdir)/libogg.so.0
1550# ... 1550# ...
1551# } 1551# }
1552 1552
1553preserve_old_lib() { 1553preserve_old_lib() {
1554 if [[ ${EBUILD_PHASE} != "pkg_preinst" ]] ; then 1554 if [[ ${EBUILD_PHASE} != "preinst" ]] ; then
1555 eerror "preserve_old_lib() must be called from pkg_preinst() only" 1555 eerror "preserve_old_lib() must be called from pkg_preinst() only"
1556# die "Invalid preserve_old_lib() usage" 1556# die "Invalid preserve_old_lib() usage"
1557 fi 1557 fi
1558 [[ -z $1 ]] && die "Usage: preserve_old_lib <library to preserve> [more libraries to preserve]" 1558 [[ -z $1 ]] && die "Usage: preserve_old_lib <library to preserve> [more libraries to preserve]"
1559 1559
1566 touch "${D}"/${lib} 1566 touch "${D}"/${lib}
1567 done 1567 done
1568} 1568}
1569 1569
1570preserve_old_lib_notify() { 1570preserve_old_lib_notify() {
1571 if [[ ${EBUILD_PHASE} != "pkg_postinst" ]] ; then 1571 if [[ ${EBUILD_PHASE} != "postinst" ]] ; then
1572 eerror "preserve_old_lib_notify() must be called from pkg_postinst() only" 1572 eerror "preserve_old_lib_notify() must be called from pkg_postinst() only"
1573# die "Invalid preserve_old_lib_notify() usage" 1573# die "Invalid preserve_old_lib_notify() usage"
1574 fi 1574 fi
1575 1575
1576 local lib notice=0 1576 local lib notice=0

Legend:
Removed from v.1.267  
changed lines
  Added in v.1.268

  ViewVC Help
Powered by ViewVC 1.1.20