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

Diff of /eclass/python.eclass

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

Revision 1.37 Revision 1.38
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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/python.eclass,v 1.37 2008/05/29 18:36:20 hawking Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.38 2008/05/29 20:01:55 hawking Exp $
4 4
5# @ECLASS: python.eclass 5# @ECLASS: python.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# python@gentoo.org 7# python@gentoo.org
8# 8#
236# 236#
237# This function should only be run in pkg_postrm() 237# This function should only be run in pkg_postrm()
238python_mod_cleanup() { 238python_mod_cleanup() {
239 local SEARCH_PATH myroot 239 local SEARCH_PATH myroot
240 240
241 # Check if phase is pkg_postinst() 241 # Check if phase is pkg_postrm()
242 [[ ${EBUILD_PHASE} != postrm ]] &&\ 242 [[ ${EBUILD_PHASE} != postrm ]] &&\
243 die "${FUNCNAME} should only be run in pkg_postrm()" 243 die "${FUNCNAME} should only be run in pkg_postrm()"
244 244
245 # strip trailing slash 245 # strip trailing slash
246 myroot="${ROOT%/}" 246 myroot="${ROOT%/}"

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

  ViewVC Help
Powered by ViewVC 1.1.20