diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2002-03-12 22:20:55 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2002-03-12 22:20:55 +0000 |
commit | 0258af2ccf42fd8eec3ffdb5280426dab707b9f4 (patch) | |
tree | caf5df2cc33f3dbaef3fd4520c5429f147aca8fe /sys-kernel/linux-sources | |
parent | fixed linux-headers. These bash && clauses really cause strange side-effects. (diff) | |
download | gentoo-2-0258af2ccf42fd8eec3ffdb5280426dab707b9f4.tar.gz gentoo-2-0258af2ccf42fd8eec3ffdb5280426dab707b9f4.tar.bz2 gentoo-2-0258af2ccf42fd8eec3ffdb5280426dab707b9f4.zip |
little fix for the weird && clause.
Diffstat (limited to 'sys-kernel/linux-sources')
-rw-r--r-- | sys-kernel/linux-sources/linux-sources-2.4.17-r5.ebuild | 12 | ||||
-rw-r--r-- | sys-kernel/linux-sources/linux-sources-2.4.18.ebuild | 12 |
2 files changed, 14 insertions, 10 deletions
diff --git a/sys-kernel/linux-sources/linux-sources-2.4.17-r5.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.17-r5.ebuild index 57f78b537be0..e123827d0e0e 100644 --- a/sys-kernel/linux-sources/linux-sources-2.4.17-r5.ebuild +++ b/sys-kernel/linux-sources/linux-sources-2.4.17-r5.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Daniel Robbins <drobbins@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.17-r5.ebuild,v 1.2 2002/03/12 18:22:16 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.17-r5.ebuild,v 1.3 2002/03/12 22:20:55 drobbins Exp $ #OKV=original kernel version, KV=patched kernel version. They can be the same. #we use this next variable to avoid duplicating stuff on cvs @@ -91,10 +91,12 @@ src_install() { } pkg_preinst() { - [ "$PN" = "linux-sources" ] && return - [ -L ${ROOT}usr/include/linux ] && rm ${ROOT}usr/include/linux - [ -L ${ROOT}usr/include/asm ] && rm ${ROOT}usr/include/asm - return + if [ "$PN" = "linux-headers" ] + then + [ -L ${ROOT}usr/include/linux ] && rm ${ROOT}usr/include/linux + [ -L ${ROOT}usr/include/asm ] && rm ${ROOT}usr/include/asm + true + fi } pkg_postinst() { diff --git a/sys-kernel/linux-sources/linux-sources-2.4.18.ebuild b/sys-kernel/linux-sources/linux-sources-2.4.18.ebuild index d02c0f4811c8..0f627525d886 100644 --- a/sys-kernel/linux-sources/linux-sources-2.4.18.ebuild +++ b/sys-kernel/linux-sources/linux-sources-2.4.18.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Daniel Robbins <drobbins@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.18.ebuild,v 1.2 2002/03/12 18:22:16 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.18.ebuild,v 1.3 2002/03/12 22:20:55 drobbins Exp $ #OKV=original kernel version, KV=patched kernel version. They can be the same. #we use this next variable to avoid duplicating stuff on cvs @@ -89,10 +89,12 @@ src_install() { } pkg_preinst() { - [ "$PN" = "linux-sources" ] && return - [ -L ${ROOT}usr/include/linux ] && rm ${ROOT}usr/include/linux - [ -L ${ROOT}usr/include/asm ] && rm ${ROOT}usr/include/asm - return + if [ "$PN" = "linux-headers" ] + then + [ -L ${ROOT}usr/include/linux ] && rm ${ROOT}usr/include/linux + [ -L ${ROOT}usr/include/asm ] && rm ${ROOT}usr/include/asm + true + fi } pkg_postinst() { |