Skip to contentSkip to conversation

adt-installer: fix sed input file error

PATCH New Chong Lu 1 participant 1 message Jul 22, 2014

lore
Share & tools
lore

Chong Lu

author
#0 lore raw

PATCH 1/1 adt-installer: fix sed input file error

When use default install directory, we can't get the environment setup script path. The reason is that opkg-cl list incorrect files paths. This patch sets env_script variable to make us get correct environment setup script path.

[YOCTO #6443]

---
 .../installer/adt-installer/scripts/adt_installer_internal               | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal +1 -0
index cdf93da..00db301 100755
@@ -163,6 +163,7 @@ for target_type in $YOCTOADT_TARGETS; do
 
   # opkg will not install packagegroup-cross-canadian package if it was already
   # installed. So, the environment script is in one place or the other.
+  [ -e "$INSTALL_FOLDER/$env_script_original" ] && env_script=$INSTALL_FOLDER/$env_script_original
   [ -e "$env_script_original" ] && env_script=$env_script_original
   [ -e "$env_script_relocated" ] && env_script=$env_script_relocated
 
Signature · 1 line
1.9.1