Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/pacman/aur-build
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ while IFS= read "${read_args[@]}" -ru "$fd" path; do
continue
else
#shellcheck disable=SC2086
${AUR_BUILD_SYNC:-aur build--sync} "${sync_args[@]}" -d "$db_name"
${AUR_BUILD_SYNC:-aur build--sync} "${sync_args[@]}" -d "$db_name" --sysupgrade
fi
done

Expand Down
8 changes: 5 additions & 3 deletions lib/pacman/aur-build--sync
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ wait_lock() {
}

# option parsing
opt_short='d:n'
opt_long=('database:' 'config:' 'noconfirm')
opt_short='d:nu'
opt_long=('database:' 'config:' 'noconfirm' 'sysupgrade')
orig_argv=("$@")

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

Expand All @@ -65,6 +65,8 @@ while true; do
shift; pacman_conf=$1 ;;
-n|--noconfirm)
confirm=0 ;;
-u|--sysupgrade)
sync_args+=(--sysupgrade) ;;
--) shift; break ;;
esac
shift
Expand Down
7 changes: 3 additions & 4 deletions tests/issue/0714
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ tmp_uid=custom-$RANDOM

cat >"$tmp"/pacman.conf <<EOF
[options]
HoldPkg = pacman-git glibc
HoldPkg = pacman glibc
Architecture = auto
CheckSpace
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
[$tmp_uid]
SigLevel = Optional TrustAll
Server = file://$tmp
EOF

Expand Down
3 changes: 2 additions & 1 deletion tests/issue/0741
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ cat >"$tmp"/pacman.conf <<EOF
HoldPkg = pacman-git glibc
Architecture = auto
CheckSpace
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[$tmp_uid]
SigLevel = Optional TrustAll
Server = file://$tmp
EOF

Expand Down