diff --git a/abuild.in b/abuild.in index 76a0806..e51282d 100755 --- a/abuild.in +++ b/abuild.in @@ -659,9 +659,9 @@ prepare_subpackages() { # call abuild recursively, setting subpkg{dir,name} msg "Running split function $func..." local dir="$pkgbasedir/${i%:*}" name="${i%:*}" - subpkgdir="$dir" subpkgname="$name" \ - $0 $func prepare_package || return 1 - postcheck "$dir" "$name" || return 1 + ( subpkgdir="$dir" subpkgname="$name" \ + $0 $func prepare_package \ + && postcheck "$dir" "$name" ) || return 1 done postcheck "$pkgdir" "$pkgname" || return 1 # post check for /usr/share/locale