diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-06-11 09:43:26 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-06-11 09:43:26 +0000 |
commit | bcb7563761d3dea56ef7ed05b1fbca295b6747f5 (patch) | |
tree | a7c9a9c74fef9afaf988b0a9f3ac7fe4742db099 /usr.sbin/pkg_add/OpenBSD/Replace.pm | |
parent | f926fe585d8fd182975f4f38e8245bbd4acd1821 (diff) |
defer to the packing element for computing md5
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Replace.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Replace.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Replace.pm b/usr.sbin/pkg_add/OpenBSD/Replace.pm index fe56bb59933..ca62b9b9dfc 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.44 2008/03/08 12:07:45 espie Exp $ +# $OpenBSD: Replace.pm,v 1.45 2008/06/11 09:43:25 espie Exp $ # # Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org> # @@ -446,15 +446,13 @@ sub save_old_libraries $stub_list->to_cache; $o->{plist}->to_cache; } else { - require OpenBSD::md5; - mkdir($dest); open my $descr, '>', $dest.DESC; print $descr "Stub libraries for $oldname\n"; close $descr; my $f = OpenBSD::PackingElement::FDESC->add($stub_list, DESC); $f->{ignore} = 1; - $f->{md5} = OpenBSD::md5::fromfile($dest.DESC); + $f->{md5} = $f->compute_md5($dest.DESC); $stub_list->to_installation; $o->{plist}->to_installation; } |