From: Andrew Gaffney Date: Fri, 14 Mar 2008 03:08:19 +0000 (+0000) Subject: Clean up package.provided after the kernel build X-Git-Tag: CATALYST_2_0_6_916~115 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=51fa1f63a2e71cca366db99306f04b776869b96d;p=catalyst.git Clean up package.provided after the kernel build git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1379 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index 07c8766d..191f1736 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 # $Id: $ + 14 Mar 2008; Andrew Gaffney + targets/support/kmerge.sh: + Clean up package.provided after the kernel build + 13 Mar 2008; Chris Gianelloni targets/support/kmerge.sh: It helps if I put things in the correct order so they'll actually execute, diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh index b0e6fc7b..702203a9 100755 --- a/targets/support/kmerge.sh +++ b/targets/support/kmerge.sh @@ -236,3 +236,12 @@ clst_fudgeuname=${VER}.${PAT}.${SUB}${EXV} unset USE echo ${clst_kernel_use} > /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.USE + + +if [ -n "${clst_KERNCACHE}" ] +then + if [ ! -e /etc/portage/profile/package.provided ] + then + sed -i "/^${KERNELVERSION}\$/d" /etc/portage/package.provided + fi +fi