diff options
author | wennmach <wennmach@pkgsrc.org> | 2001-04-10 14:09:20 +0000 |
---|---|---|
committer | wennmach <wennmach@pkgsrc.org> | 2001-04-10 14:09:20 +0000 |
commit | 806e44527a0f05db8acf2a1ed8cb1607b6a4e4b0 (patch) | |
tree | 5d2533444792ce901136fdeb28b17f3fb7085439 /pkgtools | |
parent | 73cd9e77cb40e0b55e18802400888c61f8379386 (diff) | |
download | pkgsrc-806e44527a0f05db8acf2a1ed8cb1607b6a4e4b0.tar.gz |
tar -C does not work if the cwd is not writable (I consider this a tar bug),
so do it the standard way: cat ... | (cd ...; tar ...)
Diffstat (limited to 'pkgtools')
-rwxr-xr-x | pkgtools/pkgconflict/files/pkgdbextract | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkgconflict/files/pkgdbextract b/pkgtools/pkgconflict/files/pkgdbextract index fcd81f88df8..aa882ad13d1 100755 --- a/pkgtools/pkgconflict/files/pkgdbextract +++ b/pkgtools/pkgconflict/files/pkgdbextract @@ -1,5 +1,5 @@ #!/bin/csh -f -# $NetBSD: pkgdbextract,v 1.1 2001/04/03 18:03:04 wennmach Exp $ +# $NetBSD: pkgdbextract,v 1.2 2001/04/10 14:09:20 wennmach Exp $ # # pkgdbextract: tool to extract packages databases from binary packages # into a destination directory, suitable for use with pkgconflict @@ -30,7 +30,7 @@ foreach pkg (`echo $argv[2-]`) set pkgname=$pkgbinname:r set DESTDIR=$BASEDIR/$pkgname mkdir -p $DESTDIR - tar --fast-read -xzf $pkg +CONTENTS -C $DESTDIR + cat $pkg | (cd $DESTDIR; tar --fast-read -xzf - +CONTENTS) else # It is not an error if a package can not be read echo "pkgdbextract: warning: $pkg not readable" |