elements: zypper: Do not pull recommended packages
Recommended packages are usually useful but we normally don't need them in order to have a working system. As a result, avoid pulling them in when doing a regular package installation or a distribution update. Extra packages can be pulled in using the usual '-p' parameter or from within the elements that actually need them. The results of this change are quite significant, resulting to gains from a few dozen of MBs up to a few hundred depending on the selected elements. Change-Id: I5838829c631990c7a1f3b67548accd9a603fe20c
This commit is contained in:
parent
85354e5cd8
commit
7f1494a433
@ -20,7 +20,7 @@ fi
|
|||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
EXTRA_ARGS=""
|
EXTRA_ARGS="--no-recommends"
|
||||||
MAP_ELEMENT=""
|
MAP_ELEMENT=""
|
||||||
ACTION=install
|
ACTION=install
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ eval set -- "$TEMP"
|
|||||||
|
|
||||||
while true ; do
|
while true ; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-u) run_zypper dist-upgrade; exit 0;;
|
-u) run_zypper dist-upgrade --no-recommends; exit 0;;
|
||||||
-e) ACTION="remove"; shift;;
|
-e) ACTION="remove"; shift;;
|
||||||
-d) EXTRA_ARGS="--download-only"; shift;;
|
-d) EXTRA_ARGS="--download-only"; shift;;
|
||||||
-m) MAP_ELEMENT=$2; shift 2;;
|
-m) MAP_ELEMENT=$2; shift 2;;
|
||||||
|
Loading…
Reference in New Issue
Block a user