Apt --no-install-recommends for host dependencies

This commit is contained in:
zador-blood-stained 2015-12-14 17:03:41 +03:00
parent 324a53a808
commit a7d809d577
2 changed files with 6 additions and 6 deletions

View file

@ -70,7 +70,7 @@ fi
#-------------------------------------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------------------------------------
# Get updates of the main build libraries # Get updates of the main build libraries
#-------------------------------------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------------------------------------
apt-get -qq -y install git apt-get -qq -y --no-install-recommends install git
if [ -d "$SRC/lib" ]; then if [ -d "$SRC/lib" ]; then
cd $SRC/lib cd $SRC/lib
git pull git pull
@ -91,4 +91,4 @@ fi
# If you are committing new version of this file, increment VERSION # If you are committing new version of this file, increment VERSION
# Only integers are supported # Only integers are supported
# VERSION=4 # VERSION=5

View file

@ -296,19 +296,19 @@ prepare_host() {
# dialog may be used to display progress # dialog may be used to display progress
if [[ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' dialog 2>/dev/null)" != *ii* ]]; then if [[ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' dialog 2>/dev/null)" != *ii* ]]; then
display_alert "Installing package" "dialog" "info" display_alert "Installing package" "dialog" "info"
apt-get install -qq -y dialog >/dev/null 2>&1 apt-get install -qq -y --no-install-recommends dialog >/dev/null 2>&1
fi fi
# wget is needed # wget is needed
if [[ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' wget 2>/dev/null)" != *ii* ]]; then if [[ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' wget 2>/dev/null)" != *ii* ]]; then
display_alert "Installing package" "wget" "info" display_alert "Installing package" "wget" "info"
apt-get install -qq -y wget >/dev/null 2>&1 apt-get install -qq -y --no-install-recommends wget >/dev/null 2>&1
fi fi
# need lsb_release to decide what to install # need lsb_release to decide what to install
if [[ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' lsb-release 2>/dev/null)" != *ii* ]]; then if [[ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' lsb-release 2>/dev/null)" != *ii* ]]; then
display_alert "Installing package" "lsb-release" "info" display_alert "Installing package" "lsb-release" "info"
apt-get install -qq -y lsb-release >/dev/null 2>&1 apt-get install -qq -y --no-install-recommends lsb-release >/dev/null 2>&1
fi fi
# packages list for host # packages list for host
@ -355,7 +355,7 @@ prepare_host() {
done done
if [ "${#deps[@]}" -gt "0" ]; then if [ "${#deps[@]}" -gt "0" ]; then
eval '( apt-get update; apt-get -y install "${deps[@]}" )' \ eval '( apt-get update; apt-get -y --no-install-recommends install "${deps[@]}" )' \
${PROGRESS_LOG_TO_FILE:+' | tee -a $DEST/debug/output.log'} \ ${PROGRESS_LOG_TO_FILE:+' | tee -a $DEST/debug/output.log'} \
${OUTPUT_DIALOG:+' | dialog --backtitle "$backtitle" --progressbox "Installing ${#deps[@]} host dependencies..." 20 80'} \ ${OUTPUT_DIALOG:+' | dialog --backtitle "$backtitle" --progressbox "Installing ${#deps[@]} host dependencies..." 20 80'} \
${OUTPUT_VERYSILENT:+' >/dev/null 2>/dev/null'} ${OUTPUT_VERYSILENT:+' >/dev/null 2>/dev/null'}