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/OpenBSD/PackingList.pm | |
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/OpenBSD/PackingList.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingList.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm index 4d3606dba75..aa86d7ed84b 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingList.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingList.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingList.pm,v 1.83 2008/06/06 15:02:57 espie Exp $ +# $OpenBSD: PackingList.pm,v 1.84 2008/10/06 09:36:17 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -275,7 +275,7 @@ MAINLOOP: if (m/^\@shared\b/o) { &$cont($_); while(<$fh>) { - redo MAINLOOP unless m/^\@(?:md5|size|symlink|link)\b/o; + redo MAINLOOP unless m/^\@(?:sha|md5|size|symlink|link)\b/o; m/^\@size\b/o || m/^\@symlink\b/o || m/^\@link\b/o; &$cont($_); |