Skip to content

Commit

Permalink
Handle files not produced for Git packages
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickpeterse committed May 29, 2024
1 parent 28097c2 commit 737ebba
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ if [[ -v CI ]]
then
sudo -u build updpkgsums PKGBUILD
sudo -u build makepkg --printsrcinfo | tee .SRCINFO
chown root:root PKGBUILD .SRCINFO *.tar.gz
chown root:root PKGBUILD .SRCINFO

# Git packages don't produce source archives
if [[ "${name}" != *-git ]]
then
chown root:root *.tar.gz
fi
else
updpkgsums PKGBUILD
makepkg --printsrcinfo > .SRCINFO
Expand All @@ -51,8 +57,8 @@ else
--noprogressbar
fi

rm *.tar.gz
rm *.zst
rm -f *.tar.gz
rm -f *.zst

info 'Pushing changes'
git add PKGBUILD .SRCINFO
Expand Down

0 comments on commit 737ebba

Please sign in to comment.