From: Thomas Deutschmann Date: Sat, 3 Aug 2019 13:24:16 +0000 (+0200) Subject: sys-kernel/linux-firmware: Fix exclusion of amd-uc.img from savedconfig file X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7a8f2ec34bc4c2600bd7802d816c60b41a557582;p=gentoo.git sys-kernel/linux-firmware: Fix exclusion of amd-uc.img from savedconfig file Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Thomas Deutschmann --- diff --git a/sys-kernel/linux-firmware/linux-firmware-20190726.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190726-r1.ebuild similarity index 98% rename from sys-kernel/linux-firmware/linux-firmware-20190726.ebuild rename to sys-kernel/linux-firmware/linux-firmware-20190726-r1.ebuild index 9baa48016e3d..528214a68b0e 100644 --- a/sys-kernel/linux-firmware/linux-firmware-20190726.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-20190726-r1.ebuild @@ -274,13 +274,13 @@ src_prepare() { fi echo "# Remove files that shall not be installed from this list." > ${PN}.conf - find * ! -type d \( ! -name ${PN}.conf -o -name amd-uc.img \) >> ${PN}.conf + find * ! -type d ! \( -name ${PN}.conf -o -name amd-uc.img \) >> ${PN}.conf if use savedconfig; then restore_config ${PN}.conf ebegin "Removing all files not listed in config" - find ! -type d ! -name ${PN}.conf -printf "%P\n" \ + find ! -type d ! \( -name ${PN}.conf -o -name amd-uc.img \) -printf "%P\n" \ | grep -Fvx -f <(grep -v '^#' ${PN}.conf \ || die "grep failed, empty config file?") \ | xargs -d '\n' --no-run-if-empty rm diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild index c2afff9ee0c0..bc18789f40bd 100644 --- a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild @@ -274,13 +274,13 @@ src_prepare() { fi echo "# Remove files that shall not be installed from this list." > ${PN}.conf - find * ! -type d \( ! -name ${PN}.conf -o -name amd-uc.img \) >> ${PN}.conf + find * ! -type d ! \( -name ${PN}.conf -o -name amd-uc.img \) >> ${PN}.conf if use savedconfig; then restore_config ${PN}.conf ebegin "Removing all files not listed in config" - find ! -type d ! -name ${PN}.conf -printf "%P\n" \ + find ! -type d ! \( -name ${PN}.conf -o -name amd-uc.img \) -printf "%P\n" \ | grep -Fvx -f <(grep -v '^#' ${PN}.conf \ || die "grep failed, empty config file?") \ | xargs -d '\n' --no-run-if-empty rm