Verified Commit 8467e68f authored by Karel Koci's avatar Karel Koci 🤘
Browse files

pkgupdate: create links to alternatives in correct path

The previous fix correctly changed source of alternatives but it was
still trying to create link in invalid location (ignoring configured
root). This adds this path in appropriate location.

Note that TRG is an absolute path so there does not have to be any slash
between ROOT_DIR and TRG.
parent 2166034b
Pipeline #52188 passed with stage
in 6 minutes and 16 seconds
......@@ -4,5 +4,5 @@ sed -n 's/^Alternatives://p' "$ROOT_DIR"/usr/lib/opkg/info/*.control | \
sed 's/^\ \([^:]*\):\([^:]*\):/\2:\1:/' | \
sort | \
while IFS=: read TRG PRIO SRC; do
ln -sf "$SRC" "$TRG"
ln -sf "$SRC" "$ROOT_DIR$TRG"
done
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