fix(ci): tmp fix pkgrel cs-firewall-bouncer
This commit is contained in:
parent
364813979a
commit
ccbc2e9bd5
2 changed files with 10 additions and 1 deletions
2
.util.sh
2
.util.sh
|
@ -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
|
||||
|
|
9
build.sh
9
build.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue