summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-12 08:36:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-14 11:15:45 +0000
commit8135963ff2cfac7af69a3e5726837ac469cd9a0e (patch)
tree7adc6a7dc238bd8708d89587181b9b7f34b862bc /meta/classes
parentacbf65b9a6f14ed2b2f471e104c30cca11647b6c (diff)
downloadpoky-8135963ff2cfac7af69a3e5726837ac469cd9a0e.tar.gz
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) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rootfs_ipk.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 3b4c392cec..4a5a2dd3be 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -44,7 +44,7 @@ fakeroot rootfs_ipk_do_rootfs () {
44 pkginfo="`opkg-cl ${IPKG_ARGS} info $i`" 44 pkginfo="`opkg-cl ${IPKG_ARGS} info $i`"
45 if [ ! -z "$pkginfo" ]; then 45 if [ ! -z "$pkginfo" ]; then
46 echo "$pkginfo" | grep -e '^Package:' -e '^Architecture:' -e '^Version:' >> $STATUS 46 echo "$pkginfo" | grep -e '^Package:' -e '^Architecture:' -e '^Version:' >> $STATUS
47 echo "Status: deinstall ok not-installed" >> $STATUS 47 echo "Status: deinstall hold not-installed" >> $STATUS
48 echo >> $STATUS 48 echo >> $STATUS
49 else 49 else
50 echo "Requested ignored recommendation $i is not a package" 50 echo "Requested ignored recommendation $i is not a package"