* in some combination of IMAGE_LINGUAS installed packages and available translations it's normal to get empty intersection in pending-locale-packages
* don't call opkg install in this case, because it will fail
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