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 | 3dea7bec5e7ba62c5507b950d6737f58886ece3e (patch) | |
tree | 6ffd290839b6f3a0f9a9fcd78597ba9b8b28b945 /sys-kernel/linux-sources | |
parent | fixed linux-headers. These bash && clauses really cause strange side-effects. (diff) | |
download | historical-3dea7bec5e7ba62c5507b950d6737f58886ece3e.tar.gz historical-3dea7bec5e7ba62c5507b950d6737f58886ece3e.tar.bz2 historical-3dea7bec5e7ba62c5507b950d6737f58886ece3e.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() { |