From 7075c72e1ef816a74eba379ea5450293a60f9f1d Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 5 Mar 2010 21:41:23 +0100 Subject: fix for crashing when it cannot find packages to let user select from. fixes FS#15906 --- src/core/libs/lib-ui-interactive.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 -- cgit v1.2.3-54-g00ecf