diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-12-05 10:08:59 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-12-05 10:08:59 +0000 |
commit | f33f629a49453174492956759bc949345d57f7ee (patch) | |
tree | 559be6baded9ba0633858d7af964b9bcb72226f9 /usr.sbin/pkg_add/OpenBSD/UpdateSet.pm | |
parent | c677bcc310dc42aedd5d17834ce87a0b9816fd07 (diff) |
make quirks silent. Track # of updates found, instead of newer size, since
we may end up updating sets with newer == 0
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/UpdateSet.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/UpdateSet.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm index eeec7822851..dba90f70850 100644 --- a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm +++ b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: UpdateSet.pm,v 1.32 2009/12/02 11:36:27 espie Exp $ +# $OpenBSD: UpdateSet.pm,v 1.33 2009/12/05 10:08:58 espie Exp $ # # Copyright (c) 2007 Marc Espie <espie@openbsd.org> # @@ -56,7 +56,8 @@ package OpenBSD::UpdateSet; sub new { my $class = shift; - return bless {newer => {}, older => {}, hints => []}, $class; + return bless {newer => {}, older => {}, hints => [], updates => 0}, + $class; } sub cleanup @@ -263,6 +264,7 @@ sub merge $set->{finished} = 1; # XXX and mark it as merged, for eventual updates $set->{merged} = $self; + $self->{updates} += $set->{updates}; } # then regen tracker info for $self $tracker->add_set($self); |