Clean up package.provided after the kernel build
authorAndrew Gaffney <agaffney@gentoo.org>
Fri, 14 Mar 2008 03:08:19 +0000 (03:08 +0000)
committerAndrew Gaffney <agaffney@gentoo.org>
Fri, 14 Mar 2008 03:08:19 +0000 (03:08 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1379 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/support/kmerge.sh

index 07c8766d93f2c80b6647436fcf36b1abf4078384..191f173637e71fabbfa4ecd75fe750f3d3655be8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Id: $
 
+  14 Mar 2008; Andrew Gaffney <agaffney@gentoo.org>
+  targets/support/kmerge.sh:
+  Clean up package.provided after the kernel build
+
   13 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org>
   targets/support/kmerge.sh:
   It helps if I put things in the correct order so they'll actually execute,
index b0e6fc7b95025729f2bdd8feeeac5bbbfe5b6522..702203a9a57055c661d0d1b08f4c9563da28eb9a 100755 (executable)
@@ -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