summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-03-05 21:41:23 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-03-05 21:41:23 +0100
commit7075c72e1ef816a74eba379ea5450293a60f9f1d (patch)
treee408f16eebe126b015a76d06fbc744da5114d8e0
parentb7a87de6512d3864b4b6dec5b0a6f91fc832e131 (diff)
fix for crashing when it cannot find packages to let user select from. fixes FS#15906
-rw-r--r--src/core/libs/lib-ui-interactive.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index 9ee8668..e53966e 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -770,6 +770,7 @@ Note that right now the packages (and groups) selection is limited to the repos
# sort by group
_pkglist="$(echo "$_pkglist" | sort -f -k 2)"
+ [ -z "$_pkglist" ] && show_warning "No packages found" "Sorry. I could not find any packages. maybe your network is not setup correctly, you lost connection, no mirror setup, bad group, ..." && return 1
ask_checklist "Select Packages To Install." $_pkglist || return 1
var_TARGET_PACKAGES=$ANSWER_CHECKLIST # contains now all package names