From 183ba0cfea5e9f962caba898261788d56aa95efe Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 30 Sep 2008 04:28:05 +0200 Subject: [PATCH] Show the list of dependencies required for a package to be built in the "list" target. --HG-- extra : convert_revision : e49a14940a078c994703d7ef678cc7e808b9d192 --- pkgfs.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgfs.sh b/pkgfs.sh index 329d1a3e55..3e0d988d8b 100755 --- a/pkgfs.sh +++ b/pkgfs.sh @@ -144,6 +144,16 @@ info_tmpl() echo " build_style: $build_style" echo " short_desc: $short_desc" echo "$long_desc" + echo + if [ -r "$PKGFS_DEPSDIR/$pkgname-deps.db" ]; then + pkgdepf="$PKGFS_DEPSDIR/$pkgname-deps.db" + list="$($db_cmd btree $pkgdepf deps)" + echo " This package requires the following dependencies to be built:" + for i in ${list}; do + [ "$i" = "deps" ] && continue + echo " $i" + done + fi } apply_tmpl_patches()