aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-12-01 21:51:04 +0000
committerPascal Terjan <pterjan@mageia.org>2020-12-19 15:04:14 +0000
commit89c8274f086586e22acdfe5821c30cb13f0cf065 (patch)
tree3e22c74aca0e45dc3f22c098259bff6a5d972769
parent8101101baa10e6690b97f5dd50ffc5632a005e9d (diff)
downloadmageia4arm-89c8274f086586e22acdfe5821c30cb13f0cf065.tar
mageia4arm-89c8274f086586e22acdfe5821c30cb13f0cf065.tar.gz
mageia4arm-89c8274f086586e22acdfe5821c30cb13f0cf065.tar.bz2
mageia4arm-89c8274f086586e22acdfe5821c30cb13f0cf065.tar.xz
mageia4arm-89c8274f086586e22acdfe5821c30cb13f0cf065.zip
Do not call urpmi when there are no packages to install
-rwxr-xr-xfunctions.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions.sh b/functions.sh
index 49faaf8..dfb3b16 100755
--- a/functions.sh
+++ b/functions.sh
@@ -863,7 +863,9 @@ function extrapackage() {
if [ "x${DESKTOP_TASK}" != "x" ]; then
installpkg ${DESKTOP_TASK}
fi
- installpkg "${PACKAGE_VALID}"
+ if [ "x${PACKAGE_VALID}" != "x" ]; then
+ installpkg "${PACKAGE_VALID}"
+ fi
return 0
}