diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-10-06 09:36:18 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-10-06 09:36:18 +0000 |
commit | 6f5139fc20ddbc5d63363d79c128d6b617cb09f6 (patch) | |
tree | 102ef6dae6ca5866614e11f6d077efd4539d7132 /usr.sbin/pkg_add/pkg_merge | |
parent | 4a693d6809683a8df9acd9ee68e6864a4c20a4e0 (diff) |
turn the checksums stored in packing elements into real objects, so that
pkg_add becomes mostly independent of the type of checksum stored.
separate md5 into an abstract OpenBSD::digest class and an md5 subclass
with specific methods to compute checksums and serialize results, and create
an sha class that does the same thing with sha256 (with a base64 serializer)
Diffstat (limited to 'usr.sbin/pkg_add/pkg_merge')
-rw-r--r-- | usr.sbin/pkg_add/pkg_merge | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_merge b/usr.sbin/pkg_add/pkg_merge index c8bd09d61b9..aef85498b9c 100644 --- a/usr.sbin/pkg_add/pkg_merge +++ b/usr.sbin/pkg_add/pkg_merge @@ -221,7 +221,7 @@ while(1) { my @todo = (); my @merged = (); for my $cmp (@mergeable) { - if (defined $ref->{md5} && $cmp->{tocopy}->[0]->{md5} eq $ref->{md5}) { + if (defined $ref->{d} && $cmp->{tocopy}->[0]->{d}->equals($ref->{d})) { push(@merged, $cmp); $currentprefix .= $cmp->{prefix}; $copies++; |