Skip to content

Commit

Permalink
sys-kernel/linux-firmware: Fix bug with savedconfig and symlinks
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/941786
Signed-off-by: Mike Pagano <[email protected]>
  • Loading branch information
mpagano committed Oct 19, 2024
1 parent d64bff9 commit 24162b6
Show file tree
Hide file tree
Showing 2 changed files with 404 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# shellcheck disable=SC2162 # file/folder name can include escaped symbols
grep -E '^Link:' WHENCE | sed -e 's/^Link: *//g;s/-> //g' | while read l t; do
+ [ -n "${FIRMWARE_LIST}" ] && if ! echo "${FIRMWARE_LIST}" | grep -q "${f}"; then continue; fi
+ [ -n "${FIRMWARE_LIST}" ] && if ! echo "${FIRMWARE_LIST}" | grep -q "${t}"; then continue; fi
directory="$destdir/$(dirname "$l")"
install -d "$directory"
target="$(cd "$directory" && realpath -m -s "$t")"
Expand Down
Loading

0 comments on commit 24162b6

Please sign in to comment.