Run apk update before determining the required Alpine packages

We should need the updated package list when building the dependency list
pull/118/head
Michele Locati 2020-02-15 21:40:54 +01:00
parent 08727c5685
commit 069a637113
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 5 additions and 3 deletions

View File

@ -206,6 +206,11 @@ buildRequiredPackageLists() {
buildRequiredPackageLists_distro="$(getDistro)"
buildRequiredPackageLists_distroVersion="$(getDistroVersion)"
buildRequiredPackageLists_phpv=$1
case "$buildRequiredPackageLists_distro" in
alpine)
apk update
;;
esac
case "$buildRequiredPackageLists_distroVersion" in
alpine@*)
buildRequiredPackageLists_volatile="$PHPIZE_DEPS"
@ -644,9 +649,6 @@ buildRequiredPackageLists() {
return
fi
case "$buildRequiredPackageLists_distro" in
alpine)
apk update
;;
debian)
DEBIAN_FRONTEND=noninteractive apt-get update -q
;;