mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-26 00:42:22 +00:00
abuild.in: in snapshot(), fix recursive calls
- Call "$abuild_path" instead of plain "abuild" - Pass $forceroot as done elsewhere
This commit is contained in:
parent
af0c88e6ab
commit
6d741ffba8
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user