Patchwork [3/4] adt_installer: check the result of updating opkg

login
register
mail settings
Submitter Chong.Lu@windriver.com
Date July 4, 2014, 8:45 a.m.
Message ID <cd071aa7eb78e7e002fcff0b47576523badf01ac.1404463017.git.Chong.Lu@windriver.com>
Download mbox | patch
Permalink /patch/75007/
State Accepted
Commit 018e85e62df96cc4b8fb0a29871126e411af3baa
Headers show

Comments

Chong.Lu@windriver.com - July 4, 2014, 8:45 a.m.
We should check the result of updating opkg rather than echo_info.
So we should call check_result function after updating opkg.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
 .../installer/adt-installer/scripts/adt_installer_internal              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
index 6a219a3..cdf93da 100755
--- a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
+++ b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
@@ -131,8 +131,8 @@  fi
 
 echo_info "Updating opkg..."
 $OPKG_CMD -f $OPKG_CONFIG_FILE -o $NATIVE_INSTALL_DIR update &>> $YOCTOADT_INSTALL_LOG_FILE
-echo_info "opkg update process ended..."
 check_result
+echo_info "opkg update process ended..."
 
 #install below must sdk-host packages
 OPKG_INSTALL_CMD="$OPKG_CMD "