Merge pull request #294 from AlexeyKupershtokh/no-install-recommends
Request: add --no-install-recommendspull/296/head 1.2.10
commit
21ce7858a6
|
@ -1027,7 +1027,7 @@ expandPackagesToBeInstalled() {
|
||||||
resetIFS
|
resetIFS
|
||||||
;;
|
;;
|
||||||
debian)
|
debian)
|
||||||
expandPackagesToBeInstalled_log="$(DEBIAN_FRONTEND=noninteractive apt-get install -sy $@ 2>&1 || printf '\nE: apt-get failed\n')"
|
expandPackagesToBeInstalled_log="$(DEBIAN_FRONTEND=noninteractive apt-get install -sy --no-install-recommends $@ 2>&1 || printf '\nE: apt-get failed\n')"
|
||||||
if test -n "$(printf '%s' "$expandPackagesToBeInstalled_log" | grep -E '^E:')"; then
|
if test -n "$(printf '%s' "$expandPackagesToBeInstalled_log" | grep -E '^E:')"; then
|
||||||
printf 'FAILED TO LIST THE WHOLE PACKAGE LIST FOR\n' >&2
|
printf 'FAILED TO LIST THE WHOLE PACKAGE LIST FOR\n' >&2
|
||||||
printf '%s ' "$@" >&2
|
printf '%s ' "$@" >&2
|
||||||
|
@ -1118,7 +1118,7 @@ installRequiredPackages() {
|
||||||
apk add $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
|
apk add $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
|
||||||
;;
|
;;
|
||||||
debian)
|
debian)
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -qq -y $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
|
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -1257,7 +1257,7 @@ installMicrosoftSqlServerODBC() {
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -q update
|
DEBIAN_FRONTEND=noninteractive apt-get -q update
|
||||||
fi
|
fi
|
||||||
printf -- '- installing the APT package\n'
|
printf -- '- installing the APT package\n'
|
||||||
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -qy install '^msodbcsql[0-9]+$'
|
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -qy --no-install-recommends install '^msodbcsql[0-9]+$'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -2406,7 +2406,7 @@ cleanup() {
|
||||||
case "$DISTRO" in
|
case "$DISTRO" in
|
||||||
debian)
|
debian)
|
||||||
printf '### RESTORING PREVIOUSLY INSTALLED PACKAGES ###\n'
|
printf '### RESTORING PREVIOUSLY INSTALLED PACKAGES ###\n'
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-upgrade -qqy $PACKAGES_PREVIOUS
|
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --no-upgrade -qqy $PACKAGES_PREVIOUS
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue