summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-02 22:34:00 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-02 22:34:00 -0500
commit9f28b8f1d7ecc211e4df9f4a16a04960ed1bd582 (patch)
tree42115744c0d67358da50a4785b204a4970b819bd /src
parent6fb2295a25ee4a24b38f4fce1b652a60cedd1b64 (diff)
libremakepkg: fix network handlingv20140202
Diffstat (limited to 'src')
-rwxr-xr-xsrc/chroot-tools/libremakepkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index d6db0fd..a459009 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -121,14 +121,14 @@ build() (
local copydir=$1; shift
local repack=$1; shift
- local netflag=''
local run=()
if $INCHROOT; then
- ! $NONET || netflag='-N'
run=(unshare)
+ if $NONET; then run+=('-n'); fi
else
- ! $NONET || netflag='-n'
- run=(librechroot "${librechroot_flags[@]}" run)
+ run=(librechroot "${librechroot_flags[@]}")
+ if $NONET; then run+=('-N'); fi
+ run+=(run)
fi
prepare_chroot "$copydir" "$LIBREHOME" "$repack" false