summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_deb.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r--meta/classes/package_deb.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 5740948c1a..f4b18c36d0 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -78,6 +78,7 @@ package_update_index_deb () {
78 fi 78 fi
79 done 79 done
80 80
81 found=0
81 for arch in $debarchs; do 82 for arch in $debarchs; do
82 if [ ! -d ${DEPLOY_DIR_DEB}/$arch ]; then 83 if [ ! -d ${DEPLOY_DIR_DEB}/$arch ]; then
83 continue; 84 continue;
@@ -85,7 +86,11 @@ package_update_index_deb () {
85 cd ${DEPLOY_DIR_DEB}/$arch 86 cd ${DEPLOY_DIR_DEB}/$arch
86 dpkg-scanpackages . | gzip > Packages.gz 87 dpkg-scanpackages . | gzip > Packages.gz
87 echo "Label: $arch" > Release 88 echo "Label: $arch" > Release
89 found=1
88 done 90 done
91 if [ "$found" != "1" ]; then
92 bbfatal "There are no packages in ${DEPLOY_DIR_DEB}!"
93 fi
89} 94}
90 95
91# 96#
@@ -457,6 +462,6 @@ do_package_write_deb[umask] = "022"
457addtask package_write_deb before do_package_write after do_packagedata do_package 462addtask package_write_deb before do_package_write after do_packagedata do_package
458 463
459 464
460PACKAGEINDEXES += "package_update_index_deb;" 465PACKAGEINDEXES += "[ ! -e ${DEPLOY_DIR_DEB} ] || package_update_index_deb;"
461PACKAGEINDEXDEPS += "dpkg-native:do_populate_sysroot" 466PACKAGEINDEXDEPS += "dpkg-native:do_populate_sysroot"
462PACKAGEINDEXDEPS += "apt-native:do_populate_sysroot" 467PACKAGEINDEXDEPS += "apt-native:do_populate_sysroot"