From: espie Date: Sat, 28 May 2022 07:46:27 +0000 (+0000) Subject: have pkg_create generate the hash for always-update X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c2e596a17ac45689d758df0d67597fef94480ebe;p=openbsd have pkg_create generate the hash for always-update --- diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm index 00001504f2b..c9a25b77374 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCreate.pm,v 1.178 2022/05/15 08:58:33 espie Exp $ +# $OpenBSD: PkgCreate.pm,v 1.179 2022/05/28 07:46:27 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -1725,6 +1725,10 @@ sub run_command } else { $plist = $self->make_plist_with_sum($state, $plist); + my $h = $plist->get('always-update'); + if (defined $h) { + $h->hash_plist($plist); + } } if (defined(my $dir = $state->defines('HISTORY_DIR'))) { $ordered = $self->save_history($plist,