From 4d4b42276fd25bb4bb1b24a896a1d806d10f10e2 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Fri, 24 Oct 2008 16:50:28 +0000 Subject: tweak compute_digest so that it `defaults' if invoked without a 2nd argument. switch the default digest to sha256. It's been there for a few weeks, all package tools cope with both formats, now is the time for the switch. --- usr.sbin/pkg_add/pkg_create | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_add/pkg_create') diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index 0343fb4dc90..ceec40fe428 100644 --- a/usr.sbin/pkg_add/pkg_create +++ b/usr.sbin/pkg_add/pkg_create @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_create,v 1.118 2008/10/06 09:36:17 espie Exp $ +# $OpenBSD: pkg_create,v 1.119 2008/10/24 16:50:27 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -93,7 +93,7 @@ sub compute_checksum $result->make_hardlink($stash->{"$dev/$ino"}); } else { $stash->{"$dev/$ino"} = $name; - $result->add_digest($self->compute_digest($fname, 'OpenBSD::md5')); + $result->add_digest($self->compute_digest($fname)); $result->add_size($size); } } else { -- cgit v1.2.3