abuild.in: in snapshot(), fix recursive calls

- Call "$abuild_path" instead of plain "abuild"
- Pass $forceroot as done elsewhere
This commit is contained in:
Wictor Lund 2020-01-30 13:30:48 +02:00 committed by Sören Tempel
parent af0c88e6ab
commit 6d741ffba8
1 changed files with 2 additions and 2 deletions

View File

@ -2492,7 +2492,7 @@ snapshot() {
local _date=$(date +%Y%m%d) local _date=$(date +%Y%m%d)
local _format="tar.gz" local _format="tar.gz"
# remove any repositories left in srcdir # remove any repositories left in srcdir
abuild clean "$abuild_path" $forceroot clean
mkdir -p "$srcdir" && cd "$srcdir" mkdir -p "$srcdir" && cd "$srcdir"
# clone git repo and archive # clone git repo and archive
if [ -n "$giturl" ]; then if [ -n "$giturl" ]; then
@ -2529,7 +2529,7 @@ snapshot() {
# set the pkgver to current date and update checksum # set the pkgver to current date and update checksum
sed -i -e "s/^pkgver=.*/pkgver=${_version}/" \ sed -i -e "s/^pkgver=.*/pkgver=${_version}/" \
APKBUILD || return 1 APKBUILD || return 1
abuild checksum "$abuild_path" $forceroot checksum
fi fi
} }