summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Replace.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2008-10-24 16:50:28 +0000
committerMarc Espie <espie@cvs.openbsd.org>2008-10-24 16:50:28 +0000
commit4d4b42276fd25bb4bb1b24a896a1d806d10f10e2 (patch)
treecd0a29aea496df30a820391cbebc677616e94db5 /usr.sbin/pkg_add/OpenBSD/Replace.pm
parentbf4fbd9a9c359b0e45dbe70f13de1e2f4c18a573 (diff)
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.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Replace.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Replace.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Replace.pm b/usr.sbin/pkg_add/OpenBSD/Replace.pm
index ee7cba234c9..a3270f913c1 100644
--- a/usr.sbin/pkg_add/OpenBSD/Replace.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Replace.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Replace.pm,v 1.46 2008/10/07 06:29:36 espie Exp $
+# $OpenBSD: Replace.pm,v 1.47 2008/10/24 16:50:27 espie Exp $
#
# Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org>
#
@@ -452,7 +452,7 @@ sub save_old_libraries
close $descr;
my $f = OpenBSD::PackingElement::FDESC->add($stub_list, DESC);
$f->{ignore} = 1;
- $f->add_digest($f->compute_digest($dest.DESC, 'OpenBSD::md5'));
+ $f->add_digest($f->compute_digest($dest.DESC));
$stub_list->to_installation;
$o->{plist}->to_installation;
}