From: Koen Kooi Date: Tue, 20 Feb 2007 08:06:09 +0000 (+0000) Subject: package-index: catch up with recent package_ipk changes X-Git-Tag: Release-2010-05/1~9209 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b838ffec04e1b9eea4b0bd17b72f518efa9b7de;p=openembedded.git package-index: catch up with recent package_ipk changes --- diff --git a/packages/meta/package-index.bb b/packages/meta/package-index.bb index ca0ebfe0a6..b28234f17c 100644 --- a/packages/meta/package-index.bb +++ b/packages/meta/package-index.bb @@ -1,6 +1,6 @@ DESCRIPTION = "Rebuild the package index" LICENSE = "MIT" -PR = "r1" +PR = "r2" DEPENDS = "ipkg-utils-native" @@ -29,5 +29,15 @@ do_build() { set -ex touch Packages ipkg-make-index -r Packages -p Packages -l Packages.filelist -m . - set +ex + + ipkgarchs="${PACKAGE_ARCHS}" + + for arch in $ipkgarchs; do + if [ -e ${DEPLOY_DIR_IPK}/$arch/ ] ; then + touch ${DEPLOY_DIR_IPK}/$arch/Packages + ipkg-make-index -r ${DEPLOY_DIR_IPK}/$arch/Packages -p ${DEPLOY_DIR_IPK}/$arch/Packages -l ${DEPLOY_DIR_IPK}/$arch/Packages.filelist -m ${DEPLOY_DIR_IPK}/$arch/ + fi + done + + set +ex }