On Sun, Dec 13, 2009 at 06:59:17PM +0000, Mikolaj Kucharski wrote:
> On Sat, Dec 05, 2009 at 10:24:31AM +0100, Marc Espie wrote:
> > On Tue, Dec 01, 2009 at 03:51:53AM +0100, frantisek holop wrote:
> > > hi there,
> > > 
> > > consider the following:
> > > 
> > > $ sudo pkg_delete /var/db/pkg/.libs-*
> > > .libs-nss-3.12.3.1p1: ok (3 to go)
> > > .libs-firefox35-3.5.3p0: ok (2 to go)
> > > .libs-poppler-0.12.1: ok (1 to go)
> > > 
> > > i think that the current way of showing progress is a bit
> > > confusing: after the last one, there is (1 to go)?
> > > 
> > Yeah, it's off  by one. good catch
> 
> Marc, is below output correct?
> 
> # pkg_add *.tgz
> acx-firmware-1.4: ok (11 to go)
> bwi-firmware-1.4: ok (10 to go)
> ipw-firmware-1.3p0: ok (9 to go)
> iwi-firmware-3.1: ok (8 to go)
> iwn-firmware-5.1p0: ok (7 to go)
> malo-firmware-1.4: ok (6 to go)
> otus-firmware-1.0: ok (5 to go)
> pgt-firmware-1.2: ok (4 to go)
> uath-firmware-1.0p0: ok (3 to go)
> ueagle-firmware-1.0p0: ok (2 to go)
> upgt-firmware-1.1: ok (1 to go)
> uvideo-firmware-1.1: ok
> wpi-firmware-3.2: ok

Please note that (n to go) is an estimate. In some cases, it can be off.
That said, I introduced an off-by-1 the other way round in pkg_add...

Reply via email to