aboutsummaryrefslogtreecommitdiffstats
path: root/Packdrakeng.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-28 11:32:05 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-28 11:32:05 +0000
commit97db084a7c8df7620d8d454ba6dc9206541a1243 (patch)
tree8ec9a52ca81ff7c443efce03e4b44709889fde8d /Packdrakeng.pm
parent8dc798ce1264f7741e03673b0a8056c2b8d13532 (diff)
downloadrpmtools-97db084a7c8df7620d8d454ba6dc9206541a1243.tar
rpmtools-97db084a7c8df7620d8d454ba6dc9206541a1243.tar.gz
rpmtools-97db084a7c8df7620d8d454ba6dc9206541a1243.tar.bz2
rpmtools-97db084a7c8df7620d8d454ba6dc9206541a1243.tar.xz
rpmtools-97db084a7c8df7620d8d454ba6dc9206541a1243.zip
toc_f_count wasn't stored in the Packdrakeng object, and it's used by
rpmdrake's search progress bar. (bug 14008)
Diffstat (limited to 'Packdrakeng.pm')
-rw-r--r--Packdrakeng.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/Packdrakeng.pm b/Packdrakeng.pm
index d2427b9..95fa1c7 100644
--- a/Packdrakeng.pm
+++ b/Packdrakeng.pm
@@ -254,9 +254,10 @@ sub read_toc {
$pack->{files}{$f}{off} = shift(@size_offset);
$pack->{files}{$f}{size} = shift(@size_offset);
# looking for offset for this archive
- $pack->{files}{$f}{coff} + $pack->{files}{$f}{csize} > $pack->{coff} and
- $pack->{coff} = $pack->{files}{$f}{coff} + $pack->{files}{$f}{csize};
- }
+ $pack->{files}{$f}{coff} + $pack->{files}{$f}{csize} > $pack->{coff}
+ and $pack->{coff} = $pack->{files}{$f}{coff} + $pack->{files}{$f}{csize};
+ }
+ $pack->{toc_f_count} = $toc_f_count;
1;
}