Unverified Commit c1bef9e0 authored by Tony Nguyen's avatar Tony Nguyen Committed by Josh Boyer
Browse files

copy-firmware: Always write Link: entries



File: entries in the WHENCE file overwrite existing files in the target
directory, however, Link: entries are skipped if the file exists in the
target directory. This can cause issues if the Link: entry is updated, but
the target directory contains an old symlink. Do not skip writing Link:
entries if the file exists, always create the symlink. This matches the
behavior of File: entries and ensures symlinks will contain values from
the WHENCE file.
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: default avatarJosh Boyer <jwboyer@kernel.org>
parent b95e2307
...@@ -62,7 +62,6 @@ grep -E '^Link:' WHENCE | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; d ...@@ -62,7 +62,6 @@ grep -E '^Link:' WHENCE | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; d
$verbose "WARNING: missing target for symlink $f" $verbose "WARNING: missing target for symlink $f"
fi fi
else else
test -f "$destdir/$f" && continue
$verbose "creating link $f -> $d" $verbose "creating link $f -> $d"
mkdir -p $destdir/$(dirname "$f") mkdir -p $destdir/$(dirname "$f")
ln -sf "$d" "$destdir/$f" ln -sf "$d" "$destdir/$f"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment