aboutsummaryrefslogtreecommitdiffstats
path: root/classes/testlab.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2010-06-19 07:13:28 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2010-06-25 15:20:14 +0200
commitea59e852d83e459dd73212a56618c17fdf992873 (patch)
tree6832e3c4a19d0b209d857ca6b905fc4fb1c95f38 /classes/testlab.bbclass
parente1f208e7e1d90a76a91f8ef97d9f72705f595e29 (diff)
downloadopenembedded-ea59e852d83e459dd73212a56618c17fdf992873.tar.gz
testlab: from opkg info grep only +- 7 lines around package with status installed of unpacked
* silly solution to filter multiple versions shown in installed-packages.txt where one is with Status not-installed and the right one with installed * someone with better idea? Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'classes/testlab.bbclass')
-rw-r--r--classes/testlab.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/testlab.bbclass b/classes/testlab.bbclass
index bc6b6e5a7f..b8ba9fec56 100644
--- a/classes/testlab.bbclass
+++ b/classes/testlab.bbclass
@@ -36,7 +36,7 @@ if [ -e ${IMAGE_ROOTFS}/etc/opkg ] && [ "${ONLINE_PACKAGE_MANAGEMENT}" = "full"
echo -e "digraph depends {\n node [shape=plaintext]" > ${TESTLAB_DIR}/depends.dot
for pkg in $(opkg-cl ${IPKG_ARGS} list_installed | awk '{print $1}') ; do
- opkg-cl ${IPKG_ARGS} info $pkg | awk '/^Package/ {printf $2"_"} /^Version/ {printf $2"_"} /^Archi/ {print $2".ipk"}' >> ${TESTLAB_DIR}/installed-packages.txt
+ opkg-cl ${IPKG_ARGS} info $pkg | grep -B 7 -A 7 "^Status.* \(\(installed\)\|\(unpacked\)\)" | awk '/^Package/ {printf $2"_"} /^Version/ {printf $2"_"} /^Archi/ {print $2".ipk"}' >> ${TESTLAB_DIR}/installed-packages.txt
for depends in $(opkg-cl ${IPKG_ARGS} info $pkg | grep ^Depends) ; do
echo "$pkg OPP $depends;" | grep -v "(" | grep -v ")" | grep -v "$pkg OPP Depends" | sed -e 's:,::g' -e 's:-:_:g' -e 's:\.:_:g' -e 's:+::g' |sed 's:OPP:->:g' >> ${TESTLAB_DIR}/depends.dot