Skip to content
Snippets Groups Projects
Verified Commit 2e799bd1 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

arch_boxes_sync: Create predictable symlinks for latest image files

This is needed so we can provide stable links for libosinfo (used by
gnome-boxes, virt-install and virt-manager for easy installation).
parent a48f4625
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,13 @@ unzip output.zip
rm output/*.box{,.*}
mv output/* "${LATEST_RELEASE_TAG}"
for FILE in "${LATEST_RELEASE_TAG}"/*; do
if [[ $FILE == *${LATEST_RELEASE_TAG:1}* ]]; then
FILE="${FILE##*/}"
ln -s "${FILE}" "${LATEST_RELEASE_TAG}/${FILE//-${LATEST_RELEASE_TAG:1}}"
fi
done
mv "${LATEST_RELEASE_TAG}" "${ARCH_BOXES_PATH}/"
ln -nsf "${LATEST_RELEASE_TAG}" "${ARCH_BOXES_PATH}/latest"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment