diff --git a/elements/fedora/bin/install-packages b/elements/fedora/bin/install-packages index feb2018f..d353d2c9 100644 --- a/elements/fedora/bin/install-packages +++ b/elements/fedora/bin/install-packages @@ -20,9 +20,12 @@ set -e if [ "$1" = "-u" ] ; then yum -y update exit 0 +elif [ "$1" = "-d" ] ; then + EXTRA_ARGS="--downloadonly" + shift fi -yum -y install $(map-packages "$@") +yum -y install $EXTRA_ARGS $(map-packages "$@") for pkg in "$@"; do if [ "$pkg" = "python-pip" ] ; then alternatives --install /usr/bin/pip pip /usr/bin/pip-python 10