From 37d694ae806fd2992299bf461b6dc1813c8b8836 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 12 Nov 2011 08:36:55 +0000 Subject: [PATCH] rootfs_ipk.bbclass: Ensure bad recommendations persist in the status file Currently bad recommendations are added to the status file with status "ok". After a single opkg command, whilst it will ignore the recommendation, the status changes to "installed" even if the recommended package was not installed. Whilst this is likely a glitch in opkg's logic, the correct way to persist the information in the status file is to set the status to "hold" as deinstall packages with that status remain. With this change the bad recommendations persist accross multiple opkg runs and the system behaves as expected. [YOCTO #1758] (From OE-Core rev: 215ff6b2e9676c8c7dd8acfd696151bcd0f1490f) (From OE-Core rev: 525743f5513feff67fb8fd2e4c7a1a05ae22ddc9) Signed-off-by: Richard Purdie --- meta/classes/rootfs_ipk.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index ffc4a72c06..89ce86d741 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass @@ -44,7 +44,7 @@ fakeroot rootfs_ipk_do_rootfs () { pkginfo="`opkg-cl ${IPKG_ARGS} info $i`" if [ ! -z "$pkginfo" ]; then echo "$pkginfo" | grep -e '^Package:' -e '^Architecture:' -e '^Version:' >> $STATUS - echo "Status: deinstall ok not-installed" >> $STATUS + echo "Status: deinstall hold not-installed" >> $STATUS echo >> $STATUS else echo "Requested ignored recommendation $i is not a package"