]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd_build_testrdepends
ENH: nd_build_testrdepends to get names of all binary packages build-depends of which...
[neurodebian.git] / tools / nd_build_testrdepends
index a765ee84a9a023d1b96e5ca35ecb3b2970e72420..cef0ab1008543382b475ffb74198a89afa3d3847 100755 (executable)
@@ -34,12 +34,14 @@ $CMD nd_build $family $dist $arch $dscfile --buildresult=$debdir
 
 cd $debdir
 dpkg-scanpackages . >| Packages
+# All binary packages produced
+pkgs=$(awk '/^Package:/{print $2;}' Packages)
 cd - > /dev/null
 
-echo "I: Fetching all bdepends for $pkg in $family $dist under $arch"
+echo "I: Fetching all bdepends for $pkgs in $family $dist under $arch"
 # need first to provide the necessary scripts out there
 cp -p $(dirname $0)/nd_fetch_bdepends $bindir
-$CMD nd_execute $family $dist $arch --bindmounts $testdir $bindir/nd_fetch_bdepends $pkg $srcdir
+$CMD nd_execute $family $dist $arch --bindmounts $testdir $bindir/nd_fetch_bdepends $srcdir $pkgs
 
 echo "I: preparing the hook"
 cat << EOF >| $bindir/D00add_custom_repo