pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_tarup Fix pkg_tarup -a so it recurses to ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/fd0cb350020f
branches: trunk
changeset: 520768:fd0cb350020f
user: erh <erh%pkgsrc.org@localhost>
date: Sun Oct 29 07:50:27 2006 +0000
description:
Fix pkg_tarup -a so it recurses to actually get all dependent packages.
Bump version to 1.6.6.
diffstat:
pkgtools/pkg_tarup/Makefile | 4 ++--
pkgtools/pkg_tarup/files/pkg_tarup | 24 +++++++++++++++---------
2 files changed, 17 insertions(+), 11 deletions(-)
diffs (55 lines):
diff -r d48f0bcd1da0 -r fd0cb350020f pkgtools/pkg_tarup/Makefile
--- a/pkgtools/pkg_tarup/Makefile Sun Oct 29 02:46:42 2006 +0000
+++ b/pkgtools/pkg_tarup/Makefile Sun Oct 29 07:50:27 2006 +0000
@@ -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 -r d48f0bcd1da0 -r fd0cb350020f pkgtools/pkg_tarup/files/pkg_tarup
--- a/pkgtools/pkg_tarup/files/pkg_tarup Sun Oct 29 02:46:42 2006 +0000
+++ b/pkgtools/pkg_tarup/files/pkg_tarup Sun Oct 29 07:50:27 2006 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index