Skip to content

Commit c344c95

Browse files
committed
build--sync: add missing pactrans --sysupgrade
Fixes aurutils#1235
1 parent 394378f commit c344c95

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/pacman/aur-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ while IFS= read "${read_args[@]}" -ru "$fd" path; do
467467
continue
468468
else
469469
#shellcheck disable=SC2086
470-
${AUR_BUILD_SYNC:-aur build--sync} "${sync_args[@]}" -d "$db_name"
470+
${AUR_BUILD_SYNC:-aur build--sync} "${sync_args[@]}" -d "$db_name" --sysupgrade
471471
fi
472472
done
473473

lib/pacman/aur-build--sync

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ wait_lock() {
4646
}
4747

4848
# option parsing
49-
opt_short='d:n'
50-
opt_long=('database:' 'config:' 'noconfirm')
49+
opt_short='d:nu'
50+
opt_long=('database:' 'config:' 'noconfirm' 'sysupgrade')
5151
orig_argv=("$@")
5252

5353
if opts=$(getopt -o "$opt_short" -l "$(args_csv "${opt_long[@]}")" -n "$argv0" -- "$@"); then
5454
eval set -- "$opts"
5555
else
56-
printf >&2 'usage: %s [-n] [-d database]... -- [pkgname...]\n' "$argv0"
56+
printf >&2 'usage: %s [-nu] [-d database]... -- [pkgname...]\n' "$argv0"
5757
exit 1
5858
fi
5959

@@ -65,6 +65,8 @@ while true; do
6565
shift; pacman_conf=$1 ;;
6666
-n|--noconfirm)
6767
confirm=0 ;;
68+
-u|--sysupgrade)
69+
sync_args+=(--sysupgrade) ;;
6870
--) shift; break ;;
6971
esac
7072
shift

0 commit comments

Comments
 (0)