This is to allow for ganged install of packages instead of single
package installations with apt Change-Id: Ifd268e7eca212fb5686b30213c1c7c1e47f5eb25
This commit is contained in:
parent
788501e806
commit
ac357b9bff
@ -117,12 +117,12 @@ dpkg --configure -a
|
||||
{{- range $all_apt_packages }}
|
||||
{{- $pkg_name := .name }}
|
||||
if [[ "${CURRENT_PACKAGES[{{ .name | squote }}]+isset}" != "isset"{{- if .version }} || "${CURRENT_PACKAGES[{{ .name | squote }}]}" != {{ .version }}{{- end }} ]]; then
|
||||
# Run this in case some package installation was interrupted
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold {{- if .allow_downgrade }} "--allow-downgrades" {{ end }}{{- if .repo }} -t {{ .repo }}{{ end }} {{ .name -}} {{- if .version }}={{ .version }}{{ end }}
|
||||
INSTALLED_THIS_TIME="$INSTALLED_THIS_TIME {{ .name }}"
|
||||
INSTALLED_THIS_TIME="$INSTALLED_THIS_TIME {{$pkg_name}} {{- if .version }}={{ .version }}{{ end }}"
|
||||
fi
|
||||
REQUESTED_PACKAGES="$REQUESTED_PACKAGES {{ .name }}"
|
||||
REQUESTED_PACKAGES="$REQUESTED_PACKAGES {{$pkg_name}}"
|
||||
{{- end }}
|
||||
# Run this in case some package installation was interrupted
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold {{- if .allow_downgrade }} "--allow-downgrades" {{ end }}{{- if .repo }} -t {{ .repo }}{{ end }} $INSTALLED_THIS_TIME
|
||||
{{- end }}
|
||||
|
||||
# Perform package upgrades
|
||||
|
Loading…
x
Reference in New Issue
Block a user