diff options
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 135bb6026b..a609944e73 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -46,9 +46,13 @@ fakeroot rootfs_ipk_do_rootfs () { | |||
46 | for i in ${BAD_RECOMMENDATIONS}; do | 46 | for i in ${BAD_RECOMMENDATIONS}; do |
47 | pkginfo="`opkg-cl ${OPKG_ARGS} info $i`" | 47 | pkginfo="`opkg-cl ${OPKG_ARGS} info $i`" |
48 | if [ ! -z "$pkginfo" ]; then | 48 | if [ ! -z "$pkginfo" ]; then |
49 | echo "$pkginfo" | grep -e '^Package:' -e '^Architecture:' -e '^Version:' >> $STATUS | 49 | # Take just the first package stanza as otherwise only |
50 | echo "Status: deinstall hold not-installed" >> $STATUS | 50 | # the last one will have the right Status line. |
51 | echo >> $STATUS | 51 | echo "$pkginfo" | awk "/^Package:/ { print } \ |
52 | /^Architecture:/ { print } \ | ||
53 | /^Version:/ { print } \ | ||
54 | /^$/ { exit } \ | ||
55 | END { print \"Status: deinstall hold not-installed\n\" }" - >> $STATUS | ||
52 | else | 56 | else |
53 | echo "Requested ignored recommendation $i is not a package" | 57 | echo "Requested ignored recommendation $i is not a package" |
54 | fi | 58 | fi |