diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-11-28 09:36:33 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-11-28 09:36:33 +0000 |
commit | a788d89140485c7e50485df6b911884a581de063 (patch) | |
tree | 0b66efe881f623421686417717565c4242015035 /usr.sbin/pkg_add/pkg_delete | |
parent | bbc9e2c197b1fffffb9822b46358954e9d1ee1b6 (diff) |
add (n to go) to pkg_delete as well.
Diffstat (limited to 'usr.sbin/pkg_add/pkg_delete')
-rw-r--r-- | usr.sbin/pkg_add/pkg_delete | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_delete b/usr.sbin/pkg_add/pkg_delete index 703b36afd91..cd400ea8874 100644 --- a/usr.sbin/pkg_add/pkg_delete +++ b/usr.sbin/pkg_add/pkg_delete @@ -1,6 +1,6 @@ #!/usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_delete,v 1.125 2009/11/17 10:17:21 espie Exp $ +# $OpenBSD: pkg_delete,v 1.126 2009/11/28 09:36:32 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -122,7 +122,8 @@ sub { # and finally, handle the removal do { $removed = 0; - DELETE: for my $pkgname (@todo) { + DELETE: while (my $pkgname = pop @todo) { + $state->{todo} = scalar @todo; next if $done{$pkgname}; unless (is_installed($pkgname)) { $state->say("$pkgname was not installed"); |