fix(ci): tmp fix pkgrel cs-firewall-bouncer
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2023-08-11 11:43:39 +02:00
parent 364813979a
commit ccbc2e9bd5
2 changed files with 10 additions and 1 deletions

View File

@ -13,7 +13,7 @@ update_gitea_tag() {
update_pkg() {
if [[ $(git diff . | wc -l) -ne 0 ]]; then
sed -i 's/pkgrel=.*/pkgrel=1/' PKGBUILD
sed -i 's/^pkgrel=.*/pkgrel=1/' PKGBUILD
if updpkgsums; then
makepkg --printsrcinfo >.SRCINFO

View File

@ -21,6 +21,15 @@ build() {
epoch=${epoch}:
fi
# TMP: fix wrong pkgrel cs-firewall-bouncer
if [[ "$name" == "cs-firewall-bouncer" ]]; then
relpkg=$(grep -E '^pkgrel' PKGBUILD | cut -d'=' -f2 | tr -d ' ')
if [[ "$rel" != "$pkgrel" ]]; then
rel=1
sed -i 's/^pkgrel=.*/pkgrel=1/' PKGBUILD
fi
fi
if pacman -Si "${name}" 2>/dev/null | grep -v nyyu | grep -c -E '^Repository' &>/dev/null; then
echo "WARN: Found ${name} in arch repo"
fi