summaryrefslogtreecommitdiff
path: root/src/chroot-tools/libremakepkg
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools/libremakepkg')
-rwxr-xr-xsrc/chroot-tools/libremakepkg16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index e2ccfc6..1206725 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -39,8 +39,8 @@ umask 0022
# Global variables:
readonly _indent="$(librelib chroot/indent)"
-SANE=true # can be changed with the -I flag
-NONET=true # can be changed with the -N flag
+SANE=true # can be changed with the -I flag
+NETWORKING=false # can be changed with the -N flag
# {PKG,SRC,SRCPKG,LOG}DEST set at runtime by makepkg.conf
# MAKEFLAGS, PACKAGER set at runtime by makepkg.conf
# LIBREUSER, LIBREHOME set by conf.sh
@@ -128,14 +128,14 @@ build() (
local run_nnet=()
if is_in_chroot; then
local _run=(sh -c "mount --bind -o ro -- ${startdir@Q} ${startdir@Q} && cd ${startdir@Q} && \$@" --)
- run_ynet=(unshare --mount -- "${_run[@]}")
- run_nnet=(unshare --mount --net -- "${_run[@]}")
+ run_ynet=(unshare --mount --net -- "${_run[@]}")
+ run_nnet=(unshare --mount -- "${_run[@]}")
else
librechroot_flags+=(-r "$startdir:/startdir")
- run_ynet=(librechroot "${librechroot_flags[@]}" run)
- run_nnet=(librechroot "${librechroot_flags[@]}" -N run)
+ run_ynet=(librechroot "${librechroot_flags[@]}" -N run)
+ run_nnet=(librechroot "${librechroot_flags[@]}" run)
fi
- $NONET || run_nnet=("${run_ynet[@]}")
+ ! $NETWORKING || run_nnet=("${run_ynet[@]}")
prepare_chroot "$copydir" "$LIBREHOME" "$repack" false # generates 'chrootbuild'
@@ -222,7 +222,7 @@ main() {
l ) copy=$OPTARG ; ! is_in_chroot || err_chflag "$flag";;
w|r) librechroot_flags+=(-$flag "$OPTARG") ; ! is_in_chroot || err_chflag "$flag";;
I ) SANE=false;;
- N ) NONET=false;;
+ N ) NETWORKING=true;;
R ) repack=true; makepkg_args+=(-R);;
S ) srcpkg='';; # srcpkg=$OPTARG;; TODO: not yet implemented
h ) usage; exit $EXIT_SUCCESS;;