diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-01 23:00:52 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-01 23:02:12 +0000 |
commit | b187b2775c854f6cf96e7eb4d20371340f5b152c (patch) | |
tree | 0fb1e3d89fcbfb1f08c5d3c4a3d1488ed854bb44 /meta/classes/rootfs_ipk.bbclass | |
parent | d8bee043cbd5c88a0ddca58868f8e4556ef8531c (diff) | |
download | poky-b187b2775c854f6cf96e7eb4d20371340f5b152c.tar.gz |
Revert "classes/buildhistory: add new output history collection class"
This reverts commit 508ff624fea705eb93cf2cc1e0c9c42cb817acf8. RP
accidentally pulled the wrong commit in, it was supposed to be a
*package*history bbclass change.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_ipk.bbclass')
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index b4b95c5645..4a5a2dd3be 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -143,36 +143,11 @@ remove_packaging_data_files() { | |||
143 | mkdir ${IMAGE_ROOTFS}${opkglibdir} | 143 | mkdir ${IMAGE_ROOTFS}${opkglibdir} |
144 | } | 144 | } |
145 | 145 | ||
146 | list_installed_packages() { | ||
147 | grep ^Package: ${IMAGE_ROOTFS}${opkglibdir}/status | sed "s/^Package: //" | ||
148 | } | ||
149 | |||
150 | get_package_filename() { | ||
151 | name=`opkg-cl ${IPKG_ARGS} info $1 | grep -B 7 -A 7 "^Status.* \(\(installed\)\|\(unpacked\)\)" | awk '/^Package/ {printf $2"_"}'` | ||
152 | name=$name`opkg-cl ${IPKG_ARGS} info $1 | grep -B 7 -A 7 "^Status.* \(\(installed\)\|\(unpacked\)\)" | awk -F: '/^Version/ {printf $NF"_"}' | sed 's/^\s*//g'` | ||
153 | name=$name`opkg-cl ${IPKG_ARGS} info $1 | grep -B 7 -A 7 "^Status.* \(\(installed\)\|\(unpacked\)\)" | awk '/^Archi/ {print $2".ipk"}'` | ||
154 | |||
155 | fullname=`find ${DEPLOY_DIR_IPK} -name "$name" || true` | ||
156 | if [ "$fullname" = "" ] ; then | ||
157 | echo $name | ||
158 | else | ||
159 | echo $fullname | ||
160 | fi | ||
161 | } | ||
162 | |||
163 | list_package_depends() { | ||
164 | opkg-cl ${IPKG_ARGS} info $1 | grep ^Depends | sed -e 's/^Depends: //' -e 's/,//g' -e 's:([=<>]* [0-9a-zA-Z.~\-]*)::g' | ||
165 | } | ||
166 | |||
167 | list_package_recommends() { | ||
168 | opkg-cl ${IPKG_ARGS} info $1 | grep ^Recommends | sed -e 's/^Recommends: //' -e 's/,//g' -e 's:([=<>]* [0-9a-zA-Z.~\-]*)::g' | ||
169 | } | ||
170 | |||
171 | install_all_locales() { | 146 | install_all_locales() { |
172 | 147 | ||
173 | PACKAGES_TO_INSTALL="" | 148 | PACKAGES_TO_INSTALL="" |
174 | 149 | ||
175 | INSTALLED_PACKAGES=`list_installed_packages | egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"` | 150 | INSTALLED_PACKAGES=`grep ^Package: ${IMAGE_ROOTFS}${opkglibdir}/status |sed "s/^Package: //"|egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"` |
176 | 151 | ||
177 | for pkg in $INSTALLED_PACKAGES | 152 | for pkg in $INSTALLED_PACKAGES |
178 | do | 153 | do |