summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-12-01 23:32:41 +0000
committerMike Frysinger <vapier@gentoo.org>2011-12-01 23:32:41 +0000
commit0985d74718d530a0bf65b5cec6aa161b534ae1e9 (patch)
treec7209be720e04de43b04966d1bdd86f009552365 /eclass
parentVersion bump. Updated by MyeongCheol Kim. Bug #391873 (diff)
downloadgentoo-2-0985d74718d530a0bf65b5cec6aa161b534ae1e9.tar.gz
gentoo-2-0985d74718d530a0bf65b5cec6aa161b534ae1e9.tar.bz2
gentoo-2-0985d74718d530a0bf65b5cec6aa161b534ae1e9.zip
do not warn about /usr/src/linux cruft when installing kernel headers
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 61c1b466379d..bf4a74bfd593 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.262 2011/11/08 01:05:22 mpagano Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.263 2011/12/01 23:32:41 vapier Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -1306,6 +1306,8 @@ kernel-2_pkg_setup() {
}
kernel-2_pkg_postrm() {
+ # This warning only makes sense for kernel sources.
+ [[ ${ETYPE} == headers ]] && return 0
echo
ewarn "Note: Even though you have successfully unmerged "
ewarn "your kernel package, directories in kernel source location: "
@@ -1314,4 +1316,3 @@ kernel-2_pkg_postrm() {
ewarn "will not remove these modified files and the directories they reside in."
echo
}
-