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

Diff of /eclass/eutils.eclass

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

Revision 1.305 Revision 1.306
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.305 2008/09/20 18:55:07 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.306 2008/09/20 18:58:57 vapier Exp $
4 4
5# @ECLASS: eutils.eclass 5# @ECLASS: eutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: many extra (but common) functions that are used in ebuilds 8# @BLURB: many extra (but common) functions that are used in ebuilds
265 fi 265 fi
266 266
267 # Check for absolute paths in patches. If sandbox is disabled, 267 # Check for absolute paths in patches. If sandbox is disabled,
268 # people could (accidently) patch files in the root filesystem. 268 # people could (accidently) patch files in the root filesystem.
269 # Or trigger other unpleasantries #237667. 269 # Or trigger other unpleasantries #237667.
270 if egrep -q '^[-+]{3} /' "${PATCH_TARGET}" ; then 270 local abs_paths=$(egrep -n '^[-+]{3} /' "${PATCH_TARGET}" | awk '$2 != "/dev/null" { print }')
271 if [[ -n ${abs_paths} ]] ; then
271 ewarn "Absolute paths found in ${patchname}! Please remove them!" 272 ewarn "Absolute paths found in ${patchname}! Please remove them!"
273 ewarn "${abs_paths}"
272 fi 274 fi
273 275
274 # Allow for prefix to differ ... im lazy, so shoot me :/ 276 # Allow for prefix to differ ... im lazy, so shoot me :/
275 while [ "${count}" -lt 5 ] 277 while [ "${count}" -lt 5 ]
276 do 278 do

Legend:
Removed from v.1.305  
changed lines
  Added in v.1.306

  ViewVC Help
Powered by ViewVC 1.1.20