package-index: catch up with recent package_ipk changes
authorKoen Kooi <koen@openembedded.org>
Tue, 20 Feb 2007 08:06:09 +0000 (08:06 +0000)
committerKoen Kooi <koen@openembedded.org>
Tue, 20 Feb 2007 08:06:09 +0000 (08:06 +0000)
packages/meta/package-index.bb

index ca0ebfe..b28234f 100644 (file)
@@ -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
 }