/[gentoo-x86]/eclass/check-reqs.eclass
Gentoo

Diff of /eclass/check-reqs.eclass

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

Revision 1.9 Revision 1.10
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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/check-reqs.eclass,v 1.9 2011/09/05 08:22:31 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/check-reqs.eclass,v 1.10 2011/09/06 13:57:51 scarabeus Exp $
4 4
5# @ECLASS: check-reqs.eclass 5# @ECLASS: check-reqs.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# QA Team <qa@gentoo.org> 7# QA Team <qa@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
337 local size=${1} 337 local size=${1}
338 local location=${2} 338 local location=${2}
339 local sizeunit="$(check-reqs_get_number ${size}) $(check-reqs_get_unit ${size})" 339 local sizeunit="$(check-reqs_get_number ${size}) $(check-reqs_get_unit ${size})"
340 340
341 [[ ${EBUILD_PHASE} == "pretend" && -z ${I_KNOW_WHAT_I_AM_DOING} ]] && msg="eerror" 341 [[ ${EBUILD_PHASE} == "pretend" && -z ${I_KNOW_WHAT_I_AM_DOING} ]] && msg="eerror"
342 ${msg} "Don't have at least ${sizeunit} ${location}" 342 ${msg} "There is NOT at least ${sizeunit} ${location}"
343 343
344 # @ECLASS-VARIABLE: CHECKREQS_FAILED 344 # @ECLASS-VARIABLE: CHECKREQS_FAILED
345 # @DESCRIPTION: 345 # @DESCRIPTION:
346 # @INTERNAL 346 # @INTERNAL
347 # If set the checks failed and eclass should abort the build. 347 # If set the checks failed and eclass should abort the build.

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20