2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

puke: Build in subshell

This commit is contained in:
Dylan Araps 2019-05-12 18:13:02 +03:00
parent 0f3207cd91
commit d5b8c304fd

7
puke
View File

@ -119,11 +119,8 @@ pkg_extract() {
pkg_build() {
log "Building $pkg."
cd "$mak_dir"
set -e errexit
. "$OLDPWD/build"
set +e errexit
cd "$rep_dir/$name"
(set -e errexit; cd "$mak_dir"; . "$OLDPWD/build") ||
die "Build failed."
cp -R "$rep_dir/$name" "$pkg_dir/$dbs_dir"
touch "$pkg_dir/$dbs_dir/$name/manifest"