From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WIwe8-0006iU-Gh for ptxdist@pengutronix.de; Thu, 27 Feb 2014 09:48:48 +0100 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1WIwe8-0003ry-Ew for ptxdist@pengutronix.de; Thu, 27 Feb 2014 09:48:48 +0100 Date: Thu, 27 Feb 2014 09:48:48 +0100 From: Sascha Hauer Message-ID: <20140227084848.GF17250@pengutronix.de> References: <1393424001-26060-1-git-send-email-s.hauer@pengutronix.de> <530E16A0.8030109@lespocky.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <530E16A0.8030109@lespocky.de> Subject: Re: [ptxdist] [PATCH 1/7] ptxdist: Add list-packages command Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Wed, Feb 26, 2014 at 05:30:24PM +0100, Alexander Dahl wrote: > Hei hei, > > would be nice to add another column with the license of the package. O:-) And then again, another column with the size of the package, the version and whatever else. I think for now this is out of scope, but indeed there's a lot more information that could be printed. Sascha > > Greets > Alex > > Am 26.02.2014 15:13, schrieb Sascha Hauer: > > This adds a command to list all packages currently selected. ptxdist > > gurus can use 'ptxdist print PACKAGES' for the same purpose, this command > > is for the people who can't remember the command. As a bonus list-packages > > prints one package per line and sorts them alphabetically. > > > > Signed-off-by: Sascha Hauer > > --- > > bin/ptxdist | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/bin/ptxdist b/bin/ptxdist > > index 663c41e..b2c2e7a 100755 > > --- a/bin/ptxdist > > +++ b/bin/ptxdist > > @@ -898,6 +898,7 @@ Misc: > > nfsroot run a userspace NFS server and export the nfsroot > > print print the contents of a variable, in the way > > it is known by "make" > > + list-packages print a list of all selected packages > > bash enter a ptxdist environment bash shell > > bash [args...] execute in ptxdist environment > > export_src export all source archives needed for this > > @@ -1804,6 +1805,13 @@ EOF > > ptxd_make_log "${images[@]}" > > exit > > ;; > > + list-packages) > > + check_config || return > > + check_deps > > + ( for i in $(ptxd_make_log "print-PACKAGES"); > > + do echo $i > > + done ) | sort > > + ;; > > make) > > check_premake_compiler && > > ptxd_make_log "${@}" > > > > > -- > ptxdist mailing list > ptxdist@pengutronix.de -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de