Skip to content

Commit

Permalink
have pkg_create generate the hash for always-update
Browse files Browse the repository at this point in the history
  • Loading branch information
marcespie committed May 28, 2022
1 parent 5e8e095 commit c2e596a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
Original file line number Diff line number Diff line change
@@ -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 <espie@openbsd.org>
#
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c2e596a

Please sign in to comment.