diff --git a/vfs/ChangeLog b/vfs/ChangeLog index f81cffe4f..294425423 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,5 +1,9 @@ 2000-01-02 Martin Bialasinski - + + * extfs/deb.in: Change to the deb vfs. tar has changed, and + depending on the version, it saves files as "./filename" or + "filename". + * From debian: added deba, debd, dpkg, apt script file systems. 1999-12-21 Pavel Roskin diff --git a/vfs/extfs/deb.in b/vfs/extfs/deb.in index 1af3dbd7b..c68bdab21 100644 --- a/vfs/extfs/deb.in +++ b/vfs/extfs/deb.in @@ -12,6 +12,8 @@ # (add by Michael Bramer Debian-mc-maintainer ) # (to allow access to package control files) # +# Modified by Martin Bialasinski 1999 +# (deal with change in tar format) # # # Copyright (C) 1997 Free Software Foundation @@ -131,8 +133,9 @@ sub mcdebfs_copyout } else { + # files can be prepended with ./ or not, depending on the version of tar $filename=~s!^CONTENTS/!!; - system("dpkg-deb --fsys-tarfile $archive | tar xOf - $filename > $destfile"); + system("dpkg-deb --fsys-tarfile $archive | tar xOf - $filename ./$filename > $destfile 2>/dev/null"); } } @@ -167,7 +170,7 @@ sub mcdebfs_run $pressinstall=<