diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-08-14 12:01:09 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-08-14 12:01:09 +0000 |
commit | 05f65e9206b9cd43de5153156af9f071880462dc (patch) | |
tree | dcb6094a346b195607f3307b10e0a378d15fb225 /usr.sbin/pkg_add/OpenBSD/PackingElement.pm | |
parent | 23ef0a03808247da69d477934e09903141c46d07 (diff) |
no reason not to record special files sizes along with md5.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index 9901be80aa2..0f4c74a56fe 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingElement.pm,v 1.76 2005/06/21 19:12:31 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.77 2005/08/14 12:01:08 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -1136,6 +1136,12 @@ sub add_md5 $self->{md5} = $md5; } +sub add_size +{ + my ($self, $sz) = @_; + $self->{size} = $sz; +} + sub needs_keyword { 0 } sub write |