Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] Enable buildhistory for deb-based images
@ 2011-12-09 17:34 Paul Eggleton
  2011-12-09 17:34 ` [PATCH 1/1] classes/rootfs_deb: implement query functions for buildhistory Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2011-12-09 17:34 UTC (permalink / raw)
  To: openembedded-core

The following change since commit 4a13766c7b223d82e8cf682db999a135d2b8412c:

  gtk.inc: ship gtk-demo to independent package (2011-12-08 16:58:41 +0000)

is available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib paule/buildhistory-deb
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/buildhistory-deb

Paul Eggleton (1):
  classes/rootfs_deb: implement query functions for buildhistory

 meta/classes/rootfs_deb.bbclass |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

-- 
1.7.5.4




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] classes/rootfs_deb: implement query functions for buildhistory
  2011-12-09 17:34 [PATCH 0/1] Enable buildhistory for deb-based images Paul Eggleton
@ 2011-12-09 17:34 ` Paul Eggleton
  2011-12-10  0:15   ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2011-12-09 17:34 UTC (permalink / raw)
  To: openembedded-core

Implement the functions required for buildhistory to be able to query
installed packages, get dependencies etc. for deb-based images.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/rootfs_deb.bbclass |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index bab8e1e..bef055c 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -81,3 +81,26 @@ remove_packaging_data_files() {
 	rm -rf ${IMAGE_ROOTFS}${opkglibdir}
 	rm -rf ${IMAGE_ROOTFS}/usr/dpkg/
 }
+
+DPKG_QUERY_COMMAND = "${STAGING_BINDIR_NATIVE}/dpkg --admindir=${IMAGE_ROOTFS}/var/lib/dpkg"
+
+list_installed_packages() {
+	${DPKG_QUERY_COMMAND} -l | grep ^ii | awk '{ print $2 }'
+}
+
+get_package_filename() {
+	fullname=`find ${DEPLOY_DIR_DEB} -name "$1_*.deb" || true`
+	if [ "$fullname" = "" ] ; then
+		echo $name
+	else
+		echo $fullname
+	fi
+}
+
+list_package_depends() {
+	${DPKG_QUERY_COMMAND} -s $1 | grep ^Depends | sed -e 's/^Depends: //' -e 's/,//g' -e 's:([=<>]* [0-9a-zA-Z.~\-]*)::g'
+}
+
+list_package_recommends() {
+	${DPKG_QUERY_COMMAND} -s $1 | grep ^Recommends | sed -e 's/^Recommends: //' -e 's/,//g' -e 's:([=<>]* [0-9a-zA-Z.~\-]*)::g'
+}
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] classes/rootfs_deb: implement query functions for buildhistory
  2011-12-09 17:34 ` [PATCH 1/1] classes/rootfs_deb: implement query functions for buildhistory Paul Eggleton
@ 2011-12-10  0:15   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2011-12-10  0:15 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Fri, 2011-12-09 at 17:34 +0000, Paul Eggleton wrote:
> Implement the functions required for buildhistory to be able to query
> installed packages, get dependencies etc. for deb-based images.
> 
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-10  0:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09 17:34 [PATCH 0/1] Enable buildhistory for deb-based images Paul Eggleton
2011-12-09 17:34 ` [PATCH 1/1] classes/rootfs_deb: implement query functions for buildhistory Paul Eggleton
2011-12-10  0:15   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox