diff options
author | Mike Gilbert <floppym@gentoo.org> | 2022-09-19 22:01:00 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2022-09-19 22:07:27 -0400 |
commit | 2289c56e7ea222a3f37d25b07214281560deccb8 (patch) | |
tree | 50e08568b81ff78d5bb003b409de75f95b13337b /sys-kernel/linux-firmware | |
parent | mail-client/aerc: drop 0.9.0, 0.10.0 (diff) | |
download | gentoo-2289c56e7ea222a3f37d25b07214281560deccb8.tar.gz gentoo-2289c56e7ea222a3f37d25b07214281560deccb8.tar.bz2 gentoo-2289c56e7ea222a3f37d25b07214281560deccb8.zip |
sys-kernel/linux-firmware: tweak directory removal logic
Adjust the has_version call to check include 20220913 for those of us
who upgraded at a bad time.
Don't execute the same code in pkg_postinst. That just ends up removing
the symlink.
Bug: https://bugs.gentoo.org/871315
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-kernel/linux-firmware')
-rw-r--r-- | sys-kernel/linux-firmware/linux-firmware-20220913-r2.ebuild (renamed from sys-kernel/linux-firmware/linux-firmware-20220913-r1.ebuild) | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys-kernel/linux-firmware/linux-firmware-20220913-r1.ebuild b/sys-kernel/linux-firmware/linux-firmware-20220913-r2.ebuild index a7c4c4ee148e..49b0902920bc 100644 --- a/sys-kernel/linux-firmware/linux-firmware-20220913-r1.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-20220913-r2.ebuild @@ -316,7 +316,7 @@ pkg_preinst() { fi # Fix 'symlink is blocked by a directory' Bug #871315 - if has_version "<${CATEGORY}/${PN}-20220913" ; then + if has_version "<${CATEGORY}/${PN}-20220913-r2" ; then rm -rf "${ROOT}"/lib/firmware/qcom/LENOVO/21BX fi @@ -339,11 +339,6 @@ pkg_postinst() { fi done - # Fix 'symlink is blocked by a directory' Bug #871315 - if has_version "<${CATEGORY}/${PN}-20220913" ; then - rm -rf "${ROOT}"/lib/firmware/qcom/LENOVO/21BX - fi - # Don't forget to umount /boot if it was previously mounted by us. use initramfs && mount-boot_pkg_postinst } |