Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ cd "${INPUT_PKGDIR:-.}"

# Assume that if .SRCINFO is missing then it is generated elsewhere.
# AUR checks that .SRCINFO exists so a missing file can't go unnoticed.
if [ -f .SRCINFO ] && ! sudo -u builder makepkg --printsrcinfo | diff - .SRCINFO; then
sudo -u builder makepkg --printsrcinfo > .SRCINFO.expected
if [ -f .SRCINFO ] && ! diff -u --color=always .SRCINFO.expected .SRCINFO; then
echo "::error file=$FILE,line=$LINENO::Mismatched .SRCINFO. Update with: makepkg --printsrcinfo > .SRCINFO"
exit 1
fi
mv .SRCINFO.expected .SRCINFO

# Optionally install dependencies from AUR
if [ -n "${INPUT_AURDEPS:-}" ]; then
Expand Down