Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id CCE17601A8 for ; Thu, 31 Jul 2014 07:36:59 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.9/8.14.5) with ESMTP id s6V7b0Sd024184 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 31 Jul 2014 00:37:00 -0700 (PDT) Received: from pek-hostel-deb02.wrs.com (128.224.153.152) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.174.1; Thu, 31 Jul 2014 00:36:59 -0700 From: Chong Lu To: Date: Thu, 31 Jul 2014 15:33:56 +0800 Message-ID: <1406792036-14189-1-git-send-email-Chong.Lu@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [daisy][PATCH] adt-installer: fix sed input file error X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2014 07:37:06 -0000 Content-Type: text/plain 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] Signed-off-by: Chong Lu --- .../installer/adt-installer/scripts/adt_installer_internal | 1 + 1 file changed, 1 insertion(+) 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 432ba41..b25af35 100755 --- a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal +++ b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal @@ -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 -- 1.9.1