diff options
author | wennmach <wennmach> | 2001-04-10 14:09:20 +0000 |
---|---|---|
committer | wennmach <wennmach> | 2001-04-10 14:09:20 +0000 |
commit | 91f2f3646c82d744f23c509fe8fbb3a6bea6b0ea (patch) | |
tree | 5d2533444792ce901136fdeb28b17f3fb7085439 /pkgtools | |
parent | df1a67be4946716f51bf781da6c230b0c63a0544 (diff) | |
download | pkgsrc-91f2f3646c82d744f23c509fe8fbb3a6bea6b0ea.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" |