fix(ci): tmp fix pkgrel cs-firewall-bouncer
This commit is contained in:
parent
364813979a
commit
ccbc2e9bd5
2
.util.sh
2
.util.sh
@ -13,7 +13,7 @@ update_gitea_tag() {
|
|||||||
update_pkg() {
|
update_pkg() {
|
||||||
|
|
||||||
if [[ $(git diff . | wc -l) -ne 0 ]]; then
|
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
|
if updpkgsums; then
|
||||||
makepkg --printsrcinfo >.SRCINFO
|
makepkg --printsrcinfo >.SRCINFO
|
||||||
|
9
build.sh
9
build.sh
@ -21,6 +21,15 @@ build() {
|
|||||||
epoch=${epoch}:
|
epoch=${epoch}:
|
||||||
fi
|
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
|
if pacman -Si "${name}" 2>/dev/null | grep -v nyyu | grep -c -E '^Repository' &>/dev/null; then
|
||||||
echo "WARN: Found ${name} in arch repo"
|
echo "WARN: Found ${name} in arch repo"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user