diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-15 08:21:06 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-15 08:21:06 +0000 |
commit | dc2af675bfd1f4eb14a47aa97b59c8b92d6e5419 (patch) | |
tree | 0404a9a8c603330cf574bba64f9fd91fbb0ce5d6 /usr.sbin | |
parent | 1451203bde9ccad683e7a19499ddfa4f317b0adf (diff) |
fix count of deinstalling packages.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgDelete.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm b/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm index b41e5de6356..20234bfa8ca 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgDelete.pm @@ -1,6 +1,6 @@ #!/usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgDelete.pm,v 1.4 2010/06/11 09:53:06 espie Exp $ +# $OpenBSD: PkgDelete.pm,v 1.5 2010/06/15 08:21:05 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -133,13 +133,11 @@ sub main $state->{total} = scalar @todo; DELETE: for my $pkgname (@todo) { if ($done{$pkgname}) { - $state->{total}--; next; } unless (is_installed($pkgname)) { $state->errsay("#1 was not installed", $pkgname); $done{$pkgname} = 1; - $state->{total}--; $removed++; next; } |