]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_ipk.bbclass: Ensure bad recommendations persist in the status file
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Nov 2011 08:36:55 +0000 (08:36 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Nov 2011 11:12:36 +0000 (11:12 +0000)
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]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rootfs_ipk.bbclass

index 3b4c392cecc02885b5fef3c73a3d36191a7efc50..4a5a2dd3be10b5f29b461167a7313f1af2349765 100644 (file)
@@ -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"