Run sed on the correct file
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1383
d1e1f19c-881f-0410-ab34-
b69fee027534
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 30 Mar 2008; Andrew Gaffney <agaffney@gentoo.org>
+ targets/support/kmerge.sh:
+ Modify test to run if package.provided exists instead of if it doesn't Run
+ sed on the correct file
+
27 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
targets/support/chroot-functions.sh:
Added --noreplace to setup_myfeatures merges so we don't blow away any
mkdir -p /etc/portage/profile
echo "${KERNELVERSION}" > /etc/portage/profile/package.provided
else
- if ( ! grep -q "^${KERNELVERSION}" /etc/portage/profile/package.provided )
+ if ( ! grep -q "^${KERNELVERSION}\$" /etc/portage/profile/package.provided )
then
echo "${KERNELVERSION}" >> /etc/portage/profile/package.provided
fi
if [ -n "${clst_KERNCACHE}" ]
then
- if [ ! -e /etc/portage/profile/package.provided ]
+ if [ -e /etc/portage/profile/package.provided ]
then
- sed -i "/^${KERNELVERSION}\$/d" /etc/portage/package.provided
+ sed -i "/^${KERNELVERSION}\$/d" /etc/portage/profile/package.provided
fi
fi