Remove LC_ALL from info_size.

INFO file generate without LC_ALL e.g. in current locale. Size must be computed with same locale, otherwise INFO file will be chopped of
This commit is contained in:
Boris Savelev 2013-05-27 13:58:13 +04:00 committed by Slava Zanko
parent 6b0ee515ad
commit 426f114a93
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ sub mcdebfs_list
local($archivename)=@_; local($archivename)=@_;
local $qarchivename = quote($archivename); local $qarchivename = quote($archivename);
chop($date=`LC_ALL=C date "+%b %d %H:%M"`); chop($date=`LC_ALL=C date "+%b %d %H:%M"`);
chop($info_size=`LC_ALL=C dpkg -I $qarchivename | wc -c`); chop($info_size=`dpkg -I $qarchivename | wc -c`);
$install_size=length($pressinstall); $install_size=length($pressinstall);
print "dr-xr-xr-x 1 root root 0 $date CONTENTS\n"; print "dr-xr-xr-x 1 root root 0 $date CONTENTS\n";