# ex:ts=8 sw=4:
-# $OpenBSD: Tracker.pm,v 1.31 2023/06/13 09:07:17 espie Exp $
+# $OpenBSD: Tracker.pm,v 1.32 2023/10/07 09:10:03 espie Exp $
#
# Copyright (c) 2009 Marc Espie <espie@openbsd.org>
#
for my $n ($set->kept) {
delete $self->{to_update}{$n->pkgname};
$self->{uptodate}{$n->pkgname} = 1;
+ if ($n->{is_firmware}) {
+ $self->{firmware}{$n->pkgname} = 1;
+ }
}
$self->known($set);
$self->handle_set($set);
$self->remove_set($set);
for my $n ($set->older, $set->kept) {
$self->{uptodate}{$n->pkgname} = 1;
+ if ($n->{is_firmware}) {
+ $self->{firmware}{$n->pkgname} = 1;
+ }
}
}
return keys %{$self->{cant_update}};
}
+sub did_something($self)
+{
+ for my $k (keys %{$self->{uptodate}}) {
+ next if $self->{firmware}{$k};
+ return 1;
+ }
+ return 0;
+}
+
sub cant_install_list($self)
{
return keys %{$self->{cant_install}};
# ex:ts=8 sw=4:
-# $OpenBSD: Update.pm,v 1.170 2023/06/13 09:07:17 espie Exp $
+# $OpenBSD: Update.pm,v 1.171 2023/10/07 09:10:03 espie Exp $
#
# Copyright (c) 2004-2014 Marc Espie <espie@openbsd.org>
#
if ($plist->has('firmware') && !$state->defines('FW_UPDATE')) {
$set->move_kept($h);
+ $h->{is_firmware} = 1;
return 0;
}