~dricottone/huttese-apk

b360456bdf6dfed67fd88d7f8262858432799468 — Drew DeVault 5 years ago 52f3b39
Fix pkgrel logic
1 files changed, 1 insertions(+), 1 deletions(-)

M pkgkit
M pkgkit => pkgkit +1 -1
@@ 42,7 42,7 @@ update_pkgrel() (
	pkgver="$(get_pkgvar pkgver)"
	prev_pkgver=$(apk search -x "$pkg" | cut -c$((${#pkg}+2))-)
	prev_pkgrel=$(printf "%s" "$prev_pkgver" | cut -d'-' -f2 | cut -d'r' -f2)
	if [ "$prev_pkgver" != "$pkgver" ]
	if [ "$prev_pkgver" == "$pkgver" ]
	then
		pkgrel=$((prev_pkgrel + 1))
		sed -e "s/pkgrel=.*/pkgrel=$pkgrel/" -i APKBUILD