diff options
author | erh <erh@pkgsrc.org> | 2006-10-29 07:50:27 +0000 |
---|---|---|
committer | erh <erh@pkgsrc.org> | 2006-10-29 07:50:27 +0000 |
commit | ea1b3e37b8f13af08c8261e1a673f465858669b7 (patch) | |
tree | 762586a8b10e11cf3636cc786c47607d3af6af13 /pkgtools | |
parent | fd9686a0cdee494a79a35cc3b6d53ceeb84d64f5 (diff) | |
download | pkgsrc-ea1b3e37b8f13af08c8261e1a673f465858669b7.tar.gz |
Fix pkg_tarup -a so it recurses to actually get all dependent packages.
Bump version to 1.6.6.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_tarup/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkg_tarup/files/pkg_tarup | 24 |
2 files changed, 17 insertions, 11 deletions
diff --git a/pkgtools/pkg_tarup/Makefile b/pkgtools/pkg_tarup/Makefile index 1e122d0d32b..34a4df130e9 100644 --- a/pkgtools/pkg_tarup/Makefile +++ b/pkgtools/pkg_tarup/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.28 2006/05/06 03:37:10 reed Exp $ +# $NetBSD: Makefile,v 1.29 2006/10/29 07:50:27 erh Exp $ -DISTNAME= pkg_tarup-1.6.5 +DISTNAME= pkg_tarup-1.6.6 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkg_tarup/files/pkg_tarup b/pkgtools/pkg_tarup/files/pkg_tarup index 95893f16f7e..a5afb753e30 100644 --- a/pkgtools/pkg_tarup/files/pkg_tarup +++ b/pkgtools/pkg_tarup/files/pkg_tarup @@ -1,6 +1,6 @@ #! @SH@ # -# $Id: pkg_tarup,v 1.19 2004/11/05 19:41:16 erh Exp $ +# $Id: pkg_tarup,v 1.20 2006/10/29 07:50:27 erh Exp $ # # Tar up installed package # @@ -205,17 +205,23 @@ while [ $# -gt 0 ] ; do esac done +add_all_deps_to_list() +{ + # Make the input separator only a newline so spaces are allowed + oIFS="$IFS" + IFS=" +" + for f in `pkg_info -qf "$1" | ${GREP} @pkgdep | ${SED} -e's/^@pkgdep[[:space:]]*//' ` ; do + add_to_list "$f" + add_all_deps_to_list "$f" + done + IFS="$oIFS" +} + while [ $# -gt 0 ] ; do add_to_list "$1" if [ $GETDEPS -eq 1 ] ; then - # Make the input separator only a newline so spaces are allowed - oIFS="$IFS" - IFS=" -" - for f in `pkg_info -qf "$1" | ${GREP} @pkgdep | ${SED} -e's/^@pkgdep[[:space:]]*//' ` ; do - add_to_list "$f" - done - IFS="$oIFS" + add_all_deps_to_list "$1" fi shift done |