Skip to content

Commit f304438

Browse files
committed
[fix] : Update database only once
1 parent 985d46a commit f304438

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

system/aur.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ fi
100100

101101
# Install
102102
if ! pacman -Qq "${aur_helper_package}" 1> /dev/null 2>&1; then
103-
# Update database
104103
_oldpwd="$(pwd)"
105-
pacman -Syy "${pacman_args[@]}"
106104

107105
# Install depends
108106
for _pkg in "${aur_helper_depends[@]}"; do
@@ -134,9 +132,12 @@ if ! type -p "${aur_helper_command}" > /dev/null; then
134132
exit 1
135133
fi
136134

135+
# Update database
136+
pacman -Syy "${pacman_args[@]}"
137+
137138
installpkg(){
138139
yes | sudo -u "${aur_username}" \
139-
"${aur_helper_command}" -Sy \
140+
"${aur_helper_command}" -S \
140141
--color always \
141142
--cachedir "/var/cache/pacman/pkg/" \
142143
"${pacman_args[@]}" \

0 commit comments

Comments
 (0)