diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2010-04-30 12:34:08 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2010-04-30 13:45:25 +0200 |
commit | e38c2c1286f25518770d6c668dc43939476f312d (patch) | |
tree | b70e04f52e8b350b8fdf8222b77d266e48b72771 /classes | |
parent | 0fbb279f86264dfbd55e4fd845fabc46706268fe (diff) |
image.bbclass: install_linguas don't install empty list
* 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
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image.bbclass | 4 |
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 |