summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/image.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 0fcbc44051..614d368c9b 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -260,7 +260,9 @@ if [ -e ${IMAGE_ROOTFS}/usr/bin/opkg-cl ] ; then
cat /tmp/wanted-locale-packages /tmp/available-locale-packages | sort | uniq -d > /tmp/pending-locale-packages
- cat /tmp/pending-locale-packages | xargs ${OPKG} -nodeps install
+ if [ -s /tmp/pending-locale-packages ] ; then
+ cat /tmp/pending-locale-packages | xargs ${OPKG} -nodeps install
+ fi
rm -f ${IMAGE_ROOTFS}${libdir}/opkg/lists/*
for i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.preinst; do