diff options
author | Koen Kooi <koen@openembedded.org> | 2007-02-20 08:06:09 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-02-20 08:06:09 +0000 |
commit | 7b838ffec04e1b9eea4b0bd17b72f518efa9b7de (patch) | |
tree | 8e6abbf4c2191b70fd792e60c18ab2bea2b1420b | |
parent | c36c8a8baa7da89a839e830f491f4bb3d8d6dcd4 (diff) |
package-index: catch up with recent package_ipk changes
-rw-r--r-- | packages/meta/package-index.bb | 14 |
1 files 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 } |