Skip to content

Commit

Permalink
sys-kernel/linux-firmware: delete broken symlinks
Browse files Browse the repository at this point in the history
copy-firmware.sh can create broken symlinks when it tries to
symlink files we have removed due to set USE flags.

Signed-off-by: Thomas Deutschmann <[email protected]>
  • Loading branch information
Whissi committed Oct 30, 2020
1 parent 5051834 commit 9831b5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ src_install() {

pushd "${ED}/lib/firmware" &>/dev/null || die

# especially use !redistributable will cause some broken symlinks
einfo "Removing broken symlinks ..."
find * -xtype l -print -delete || die

if use savedconfig; then
if [[ -s "${S}/${PN}.conf" ]]; then
local files_to_keep="${T}/files_to_keep.lst"
Expand Down

0 comments on commit 9831b5f

Please sign in to comment.