Skip to content

Commit

Permalink
Update package databases before building
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed Sep 27, 2022
1 parent 5e60066 commit 192c59e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/support/package_archlinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
TMP_DIR="$(mktemp -d tmp.XXXXXXXXX -p "$(pwd)")"
pushd "${TMP_DIR}" || fail "Failed to move to temporary working directory"

pacman -Sy || fail "Failed to update package databases"

cp "${DIR}/archlinux/PKGBUILD.local" ./PKGBUILD || fail "Failed to get PKGBUILD file"
sed -i "s/%VAGRANT_VERSION%/${VAGRANT_VERSION}/" ./PKGBUILD ||
fail "Failed to set Vagrant version into PKGBUILD file"
Expand Down

0 comments on commit 192c59e

Please sign in to comment.