summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-07-08 02:03:41 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-07-08 02:03:41 +0000
commit250b41e2a783feb96bf91d30cce9b55bf7107452 (patch)
treed71ea08c928f74316e7713078f11e48be6e2b577 /eclass
parentfix use invocation (Manifest recommit) (diff)
downloadgentoo-2-250b41e2a783feb96bf91d30cce9b55bf7107452.tar.gz
gentoo-2-250b41e2a783feb96bf91d30cce9b55bf7107452.tar.bz2
gentoo-2-250b41e2a783feb96bf91d30cce9b55bf7107452.zip
fix use invocation
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index c24502113ab8..8c3be4fd4e51 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.37 2004/07/05 00:00:13 spock Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.38 2004/07/08 02:03:41 mr_bones_ Exp $
# kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel
# with back-compatibility for 2.4
@@ -302,7 +302,7 @@ postinst_sources() {
# Show policy version, if this kernel has SELinux...
local secfile="${ROOT}usr/src/linux-${KV}/security/selinux/include/security.h"
- if [ -n "`use selinux`" -a -f "$secfile" ]
+ if use selinux && [ -f "$secfile" ]
then
local polver=$(awk '/POLICYDB_VERSION /{print $3}' $secfile)
einfo "The SELinux policy version of this kernel is $polver."