summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_ipk.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
-rw-r--r--meta/classes/package_ipk.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index e5e76ef278..526c3aecb1 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -216,12 +216,17 @@ package_update_index_ipk () {
216 packagedirs="$packagedirs ${DEPLOY_DIR_IPK}/$arch" 216 packagedirs="$packagedirs ${DEPLOY_DIR_IPK}/$arch"
217 done 217 done
218 218
219 found=0
219 for pkgdir in $packagedirs; do 220 for pkgdir in $packagedirs; do
220 if [ -e $pkgdir/ ]; then 221 if [ -e $pkgdir/ ]; then
222 found=1
221 touch $pkgdir/Packages 223 touch $pkgdir/Packages
222 flock $pkgdir/Packages.flock -c "opkg-make-index -r $pkgdir/Packages -p $pkgdir/Packages -m $pkgdir/" 224 flock $pkgdir/Packages.flock -c "opkg-make-index -r $pkgdir/Packages -p $pkgdir/Packages -m $pkgdir/"
223 fi 225 fi
224 done 226 done
227 if [ "$found" != "1" ]; then
228 bbfatal "There are no packages in ${DEPLOY_DIR_IPK}!"
229 fi
225} 230}
226 231
227# 232#
@@ -483,6 +488,6 @@ do_package_write_ipk[cleandirs] = "${PKGWRITEDIRIPK}"
483do_package_write_ipk[umask] = "022" 488do_package_write_ipk[umask] = "022"
484addtask package_write_ipk before do_package_write after do_packagedata do_package 489addtask package_write_ipk before do_package_write after do_packagedata do_package
485 490
486PACKAGEINDEXES += "package_update_index_ipk;" 491PACKAGEINDEXES += "[ ! -e ${DEPLOY_DIR_IPK} ] || package_update_index_ipk;"
487PACKAGEINDEXDEPS += "opkg-utils-native:do_populate_sysroot" 492PACKAGEINDEXDEPS += "opkg-utils-native:do_populate_sysroot"
488PACKAGEINDEXDEPS += "opkg-native:do_populate_sysroot" 493PACKAGEINDEXDEPS += "opkg-native:do_populate_sysroot"