/[gentoo-x86]/eclass/linux-info.eclass
Gentoo

Diff of /eclass/linux-info.eclass

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

Revision 1.34 Revision 1.35
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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/linux-info.eclass,v 1.34 2005/12/30 18:36:39 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.35 2005/12/30 18:47:14 johnm Exp $
4# 4#
5# Description: This eclass is used as a central eclass for accessing kernel 5# Description: This eclass is used as a central eclass for accessing kernel
6# related information for sources already installed. 6# related information for sources already installed.
7# It is vital for linux-mod to function correctly, and is split 7# It is vital for linux-mod to function correctly, and is split
8# out so that any ebuild behaviour "templates" are abstracted out 8# out so that any ebuild behaviour "templates" are abstracted out
423 if [[ ${die} == 0 ]]; then 423 if [[ ${die} == 0 ]]; then
424 ebegin "CONFIG_${config}" 424 ebegin "CONFIG_${config}"
425 eend ${error} 425 eend ${error}
426 else 426 else
427 if [[ ${error} > 0 ]]; then 427 if [[ ${error} > 0 ]]; then
428 local_error="${config}_ERROR" 428 local_error="ERROR_${config}"
429 local_error="${!local_error}" 429 local_error="${!local_error}"
430
431 if [[ -z "${local_error}" ]]; then
432 # using old, deprecated format.
433 local_error="${config}_ERROR"
434 local_error="${!local_error}"
435 fi
436
430 if [[ -z "${local_error}" ]]; then 437 if [[ -z "${local_error}" ]]; then
431 [[ ${error} == 1 ]] \ 438 [[ ${error} == 1 ]] \
432 && local_error="is not set when it should be." \ 439 && local_error="is not set when it should be." \
433 || local_error="should not be set. But it is." 440 || local_error="should not be set. But it is."
434 local_error="CONFIG_${config}:\t ${local_error}" 441 local_error="CONFIG_${config}:\t ${local_error}"

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20