mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-10-02 18:46:20 +02:00
Compare commits
1 Commits
64790b4fb6
...
rafaelff/p
Author | SHA1 | Date | |
---|---|---|---|
![]() |
139f7e305f |
@@ -79,9 +79,6 @@ Options
|
|||||||
*-x* <when>::
|
*-x* <when>::
|
||||||
Inspect chroot after build, possible modes are 'never' (default), 'always' or 'failure'
|
Inspect chroot after build, possible modes are 'never' (default), 'always' or 'failure'
|
||||||
|
|
||||||
*-s* <args>::
|
|
||||||
Additional systemd-nspawn args (comma-separated) for the arch-nspawn build phase
|
|
||||||
|
|
||||||
See Also
|
See Also
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@ pkgctl-auth(1)
|
|||||||
|
|
||||||
Name
|
Name
|
||||||
----
|
----
|
||||||
pkgctl-auth - Authenticate with serivces like GitLab.
|
pkgctl-auth - Authenticate with services like GitLab.
|
||||||
|
|
||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
@@ -39,7 +39,6 @@ inspect=never
|
|||||||
bindmounts_ro=()
|
bindmounts_ro=()
|
||||||
bindmounts_rw=()
|
bindmounts_rw=()
|
||||||
bindmounts_tmpfs=()
|
bindmounts_tmpfs=()
|
||||||
nspawn_add_args=()
|
|
||||||
|
|
||||||
copy=$USER
|
copy=$USER
|
||||||
[[ -n ${SUDO_USER:-} ]] && copy=$SUDO_USER
|
[[ -n ${SUDO_USER:-} ]] && copy=$SUDO_USER
|
||||||
@@ -85,8 +84,6 @@ usage() {
|
|||||||
echo '-T Build in a temporary directory'
|
echo '-T Build in a temporary directory'
|
||||||
echo '-U Run makepkg as a specified user'
|
echo '-U Run makepkg as a specified user'
|
||||||
echo '-x <when> Inspect chroot after build (never, always, failure)'
|
echo '-x <when> Inspect chroot after build (never, always, failure)'
|
||||||
echo '-s <args> Additional systemd-nspawn args (comma-separated) for'
|
|
||||||
echo ' the arch-nspawn build phase'
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -296,7 +293,7 @@ move_products() {
|
|||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
while getopts 'hcur:I:l:nCTD:d:U:x:t:s:' arg; do
|
while getopts 'hcur:I:l:nCTD:d:U:x:t:' arg; do
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
c) clean_first=1 ;;
|
c) clean_first=1 ;;
|
||||||
D) bindmounts_ro+=("--bind-ro=$OPTARG") ;;
|
D) bindmounts_ro+=("--bind-ro=$OPTARG") ;;
|
||||||
@@ -311,7 +308,6 @@ while getopts 'hcur:I:l:nCTD:d:U:x:t:s:' arg; do
|
|||||||
T) temp_chroot=1; copy+="-$$" ;;
|
T) temp_chroot=1; copy+="-$$" ;;
|
||||||
U) makepkg_user="$OPTARG" ;;
|
U) makepkg_user="$OPTARG" ;;
|
||||||
x) inspect="$OPTARG" ;;
|
x) inspect="$OPTARG" ;;
|
||||||
s) IFS=, read -ra nspawn_add_args <<< "$OPTARG" ;;
|
|
||||||
h|*) usage ;;
|
h|*) usage ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@@ -398,7 +394,6 @@ nspawn_build_args=(
|
|||||||
"${bindmounts_ro[@]}"
|
"${bindmounts_ro[@]}"
|
||||||
"${bindmounts_rw[@]}"
|
"${bindmounts_rw[@]}"
|
||||||
"${bindmounts_tmpfs[@]}"
|
"${bindmounts_tmpfs[@]}"
|
||||||
"${nspawn_add_args[@]}"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if arch-nspawn "$copydir" \
|
if arch-nspawn "$copydir" \
|
||||||
|
Reference in New Issue
Block a user