abuild: run subpackage split functions in a subshell
so subfunctions don't overwrite the global variables like depends, pkgdesc etc.
This commit is contained in:
parent
8b3ecdf1f4
commit
65edee22f2
@ -659,9 +659,9 @@ prepare_subpackages() {
|
|||||||
# call abuild recursively, setting subpkg{dir,name}
|
# call abuild recursively, setting subpkg{dir,name}
|
||||||
msg "Running split function $func..."
|
msg "Running split function $func..."
|
||||||
local dir="$pkgbasedir/${i%:*}" name="${i%:*}"
|
local dir="$pkgbasedir/${i%:*}" name="${i%:*}"
|
||||||
subpkgdir="$dir" subpkgname="$name" \
|
( subpkgdir="$dir" subpkgname="$name" \
|
||||||
$0 $func prepare_package || return 1
|
$0 $func prepare_package \
|
||||||
postcheck "$dir" "$name" || return 1
|
&& postcheck "$dir" "$name" ) || return 1
|
||||||
done
|
done
|
||||||
postcheck "$pkgdir" "$pkgname" || return 1
|
postcheck "$pkgdir" "$pkgname" || return 1
|
||||||
# post check for /usr/share/locale
|
# post check for /usr/share/locale
|
||||||
|
Loading…
x
Reference in New Issue
Block a user