any specific handling.
# ex:ts=8 sw=4:
-# $OpenBSD: Cache.pm,v 1.10 2022/05/20 20:31:38 espie Exp $
+# $OpenBSD: Cache.pm,v 1.11 2022/05/29 10:48:41 espie Exp $
#
# Copyright (c) 2022 Marc Espie <espie@openbsd.org>
#
my ($self, $state, $setlist) = @_;
my $progress = $state->progress;
- my $uncached = {};
my $found = {};
my $pseudo_search = [$self];
$found->{OpenBSD::PackageName::splitstem($pkgname)} = 1;
$self->{raw_data}{$pkgname} //= '';
$self->{raw_data}{$pkgname} .= "$value\n";
- if ($value =~ m/\@option\s+always-update/) {
- $uncached->{$pkgname} = 1;
- }
if ($pkgname ne $oldname) {
$oldname = $pkgname;
$done++;
}
}
close($fh);
- for my $pkgname (keys %$uncached) {
- delete $self->{raw_data}{$pkgname}
- }
return unless $state->defines("CACHING_VERBOSE");
for my $k (@list) {
if (!defined $found->{$k}) {
# ex:ts=8 sw=4:
-# $OpenBSD: PackingList.pm,v 1.147 2020/01/02 12:27:04 espie Exp $
+# $OpenBSD: PackingList.pm,v 1.148 2022/05/29 10:48:41 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
{
my ($fh, $cont) = @_;
while (<$fh>) {
- # if alwaysupdate, all info is sig
- if (m/^\@option\s+always-update\b/o) {
+ # if old alwaysupdate, all info is sig
+ # if new, we don't need the rest
+ if (m/^\@option\s+always-update$/o) {
&$cont($_);
while (<$fh>) {
&$cont($_);
# ex:ts=8 sw=4:
-# $OpenBSD: Signature.pm,v 1.26 2022/05/19 09:20:31 espie Exp $
+# $OpenBSD: Signature.pm,v 1.27 2022/05/29 10:48:41 espie Exp $
#
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
#
{
my ($class, $pkgname, $extra, $plist) = @_;
my $o = $class->SUPER::new($pkgname, $extra);
- my $hash;
- open my $fh, '>', \$hash;
- $plist->write_without_variation($fh);
- close $fh;
- $o->{hash} = $hash;
+ my $a = $plist->get('always-update');
+ if (!defined $a->{hash}) {
+ $a->hash_plist($plist);
+ }
+ $o->{hash} = $a->{hash};
return $o;
}