diff --git a/bin/buildpkg.in b/bin/buildpkg.in index 5faf576..6feaf75 100644 --- a/bin/buildpkg.in +++ b/bin/buildpkg.in @@ -119,7 +119,7 @@ while getopts "${opts}" arg; do b) target_branch="$OPTARG" ;; r) chroots_pkg="$OPTARG" ;; i) install_pkgs+="$OPTARG"; mkchrootpkg_args+=(-I ${install_pkgs[*]}) ;; - c) clean_first=true; mkchroot_args+=(-L) ;; + c) clean_first=true ;; w) wipe_clean=true ;; n) namcap=true; mkchrootpkg_args+=(-n) ;; s) sign=true ;; @@ -132,7 +132,7 @@ done configure_chroot_arch "${target_arch}" -mkchroot_args+=(-C ${pacman_conf} -M ${makepkg_conf} -S ${mirrors_conf} -B "${build_mirror}/${target_branch}" -L) +mkchroot_args+=(-C ${pacman_conf} -M ${makepkg_conf} -S ${mirrors_conf} -B "${build_mirror}/${target_branch}") mkchrootpkg_args+=(-r ${work_dir}) diff --git a/lib/util-pkg.sh b/lib/util-pkg.sh index 811d913..ab6aa0b 100644 --- a/lib/util-pkg.sh +++ b/lib/util-pkg.sh @@ -224,6 +224,7 @@ init_base_devel(){ chroot_create(){ msg "Creating chroot for [%s] (%s)..." "${target_branch}" "${target_arch}" mkdir -p "${work_dir}" + mkchroot_args+=(-L) setarch "${target_arch}" \ mkchroot ${mkchroot_args[*]} \ "${work_dir}/root" \