* vfs/extfs/deb.in (mcdebfs_list): Do not skip over directory entries.

Set the locale to C when executing dpkg-deb.
This commit is contained in:
Pavel Tsekov 2006-07-18 14:49:48 +00:00
parent 861c850cfd
commit 3c713dfe18
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2006-07-18 Egmont Koblinger <egmont@uhulinux.hu>
* extfs/deb.in (mcdebfs_list): Do not skip over directory entries.
Set the locale to C when executing dpkg-deb.
2006-07-13 Marcel Pol <mpol@gmx.net>
* extfs/rpm: Remove support for obsoleted RPM tags.

View File

@ -34,7 +34,7 @@ sub mcdebfs_list
local($archivename)=@_;
local $qarchivename = quote($archivename);
chop($date=`LC_ALL=C date "+%b %d %H:%M"`);
chop($info_size=`dpkg -I $qarchivename | wc -c`);
chop($info_size=`LC_ALL=C dpkg -I $qarchivename | wc -c`);
$install_size=length($pressinstall);
print "dr-xr-xr-x 1 root root 0 $date CONTENTS\n";
@ -73,7 +73,6 @@ sub mcdebfs_list
$link2=$_[$pathindex++];
$owgr=~s!/! !;
next if $path=~m!/$!;
if($arrow eq 'link')
{
# report hard links as soft links
@ -97,7 +96,7 @@ sub mcdebfs_list
}
}
}
if ( open(PIPEIN, "dpkg-deb -I $qarchivename |") )
if ( open(PIPEIN, "LC_ALL=C dpkg-deb -I $qarchivename |") )
{
while(<PIPEIN>)
{