summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWictor Lund <wictory@iki.fi>2020-01-30 13:30:48 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2020-02-16 23:46:58 +0100
commit6d741ffba8b06e714b257d285f64594501812594 (patch)
tree302602a3fadfc478d89cafc78368fca7d0b9c45b
parentaf0c88e6abbb1e49224759f5c51b3068e6eab28b (diff)
downloadabuild-6d741ffba8b06e714b257d285f64594501812594.tar.bz2
abuild-6d741ffba8b06e714b257d285f64594501812594.tar.xz
abuild.in: in snapshot(), fix recursive calls
- Call "$abuild_path" instead of plain "abuild" - Pass $forceroot as done elsewhere
-rw-r--r--abuild.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/abuild.in b/abuild.in
index 7654baa..2af9452 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2492,7 +2492,7 @@ snapshot() {
local _date=$(date +%Y%m%d)
local _format="tar.gz"
# remove any repositories left in srcdir
- abuild clean
+ "$abuild_path" $forceroot clean
mkdir -p "$srcdir" && cd "$srcdir"
# clone git repo and archive
if [ -n "$giturl" ]; then
@@ -2529,7 +2529,7 @@ snapshot() {
# set the pkgver to current date and update checksum
sed -i -e "s/^pkgver=.*/pkgver=${_version}/" \
APKBUILD || return 1
- abuild checksum
+ "$abuild_path" $forceroot checksum
fi
}