Bug 254742

Summary: ports-mgmt/pkg: On "size mismatch, fetching from remote", issues with package counting
Product: Ports & Packages Reporter: Neel Chauhan <nc>
Component: Individual Port(s)Assignee: freebsd-pkg (Nobody) <pkg>
Status: New ---    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (pkg)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Neel Chauhan freebsd_committer 2021-04-03 17:25:24 UTC
This is a pkg output from a recent update:

[1/6] Fetching i386-wine-devel-5.8_2,1.txz: 100%   60 MiB 244.4kB/s    04:16    
pkg: cached package i386-wine-devel-5.8_2,1: size mismatch, fetching from remote
[2/6] Fetching i386-wine-devel-5.8_2,1.txz: 100%   90 MiB 119.6kB/s    13:08    [3/6] Fetching gtk3-3.24.27.txz:  70%    8 MiB  49.2kB/s    00:30 ETA           
[3/6] Fetching gtk3-3.24.27.txz: 100%   11 MiB 107.7kB/s    01:46               
[4/6] Fetching gtk-update-icon-cache-3.24.26.txz: 100%   75 KiB  76.6kB/s    00:
01                                                                              
[5/6] Fetching git-2.31.1.txz: 100%    5 MiB 144.5kB/s    00:37                 
[6/6] Fetching firefox-87.0_2,2.txz: 100%   54 MiB 121.7kB/s    07:45           
Fetching castor-0.8.16_4.txz: 100%  720 KiB 737.0kB/s    00:01 

On a "size mismatch, fetching from remote", we should not increment