From 7b838ffec04e1b9eea4b0bd17b72f518efa9b7de Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Tue, 20 Feb 2007 08:06:09 +0000 Subject: package-index: catch up with recent package_ipk changes --- packages/meta/package-index.bb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 } -- cgit v1.2.3