From 7cc10e41f5956f93ab6048e3f7f073d7ba783e46 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Mar 15 2011 02:38:52 +0000 Subject: Update prepare_doPackages.sh. --- diff --git a/Scripts/Bash/Cli/Functions/Prepare/prepare_doPackages.sh b/Scripts/Bash/Cli/Functions/Prepare/prepare_doPackages.sh index e504453..c119cc0 100644 --- a/Scripts/Bash/Cli/Functions/Prepare/prepare_doPackages.sh +++ b/Scripts/Bash/Cli/Functions/Prepare/prepare_doPackages.sh @@ -37,6 +37,12 @@ function prepare_doPackages { # Print line separator. cli_printMessage '-' 'AsSeparatorLine' + # Print action message. + cli_printMessage "`gettext "Checking required packages"`" 'AsResponseLine' + + # Print line separator. + cli_printMessage '-' 'AsSeparatorLine' + local PACKAGE='' local WARNING='' local PACKAGES='' @@ -62,9 +68,6 @@ function prepare_doPackages { # centos-art to work as expected. PACKAGES_THIRDS="(inkscape|blender)" - # Print action message. - cli_printMessage "`gettext "RPM packages"`" 'AsCheckingLine' - # Build list of missing packages. for PACKAGE in $PACKAGES;do $RPM -q --queryformat "%{NAME}\n" $PACKAGE --quiet @@ -73,9 +76,6 @@ function prepare_doPackages { fi done - # Print line separator. - cli_printMessage '-' 'AsSeparatorLine' - # Is there any package missing? if [[ ${#PACKAGES_MISSING[*]} -eq 0 ]];then cli_printMessage "`gettext "The required packages has been already installed."`" @@ -105,12 +105,4 @@ function prepare_doPackages { # yum. sudo ${YUM} install ${PACKAGES_MISSING[*]} - # At this point we need to recheck installed packages in order to - # be sure the user decided not to continue when there are still - # missing packages to be install. For example this may happen - # when we try to install third party packages but there is no - # third party repository configured in the workstation for yum to - # retrive those packages from. - prepare_doPackages - }