Show the list of dependencies required for a package to be built

in the "list" target.

--HG--
extra : convert_revision : e49a14940a078c994703d7ef678cc7e808b9d192
This commit is contained in:
Juan RP 2008-09-30 04:28:05 +02:00
parent 09dccc8719
commit 183ba0cfea
1 changed files with 10 additions and 0 deletions

View File

@ -144,6 +144,16 @@ info_tmpl()
echo " build_style: $build_style" echo " build_style: $build_style"
echo " short_desc: $short_desc" echo " short_desc: $short_desc"
echo "$long_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() apply_tmpl_patches()