/[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.66 Revision 1.67
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/linux-info.eclass,v 1.66 2009/09/06 23:24:49 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.67 2009/09/06 23:31:47 robbat2 Exp $
4# 4#
5# Original author: John Mylchreest <johnm@gentoo.org> 5# Original author: John Mylchreest <johnm@gentoo.org>
6# Maintainer: kernel-misc@gentoo.org 6# Maintainer: kernel-misc@gentoo.org
7# 7#
8# Please direct your bugs to the current eclass maintainer :) 8# Please direct your bugs to the current eclass maintainer :)
564# @DESCRIPTION: 564# @DESCRIPTION:
565# This attempts to find the version of the sources, and otherwise falls back to 565# This attempts to find the version of the sources, and otherwise falls back to
566# the version of the running kernel. 566# the version of the running kernel.
567linux-info_get_any_version() { 567linux-info_get_any_version() {
568 get_version 568 get_version
569 if [[ $rc -ne 0 ]]; then 569 if [[ $? -ne 0 ]]; then
570 ewarn "Unable to calculate Linux Kernel version for build, attempting to use running version" 570 ewarn "Unable to calculate Linux Kernel version for build, attempting to use running version"
571 get_running_version 571 get_running_version
572 fi 572 fi
573} 573}
574 574

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

  ViewVC Help
Powered by ViewVC 1.1.20