From: Marc Fiuczynski Date: Wed, 17 Jun 2009 15:28:23 +0000 (+0000) Subject: a helper script to just list the set of rpms for a specific pldistro/rhdistro combo X-Git-Tag: 4.3-rc10~32 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ad60d3ce9975eeb5575cd06d7d22d0df8c63ad11;p=build.git a helper script to just list the set of rpms for a specific pldistro/rhdistro combo --- diff --git a/getpackages.sh b/getpackages.sh new file mode 100755 index 00000000..7a385a31 --- /dev/null +++ b/getpackages.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +. build.common + +function usage () { + echo "Usage: $0 pldistro rhdistro lstfiles" + exit 1 +} + +#[ "$#" = 1 ] || usage +pldistro=$1; shift +rhdistro=$1; shift +lstfiles=$@ + +function pkgs_from_lst () { + builddir=$1; shift + pldistro=$1; shift + rhdistro=$1; shift + lstfiles=$@ + + for lstfile in $lstfiles; do + pkgsfile=$(pl_locateDistroFile $builddir $pldistro $lstfile 2> /dev/null) + packages=$(pl_getPackages $rhdistro $pldistro $pkgsfile) + echo $packages + done +} + +pkgs_from_lst $(dirname $0) $pldistro $rhdistro $lstfiles