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/pkg_create | |
parent | 23ef0a03808247da69d477934e09903141c46d07 (diff) |
no reason not to record special files sizes along with md5.
Diffstat (limited to 'usr.sbin/pkg_add/pkg_create')
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index 8e5520b8d82..3b1943783ed 100644 --- a/usr.sbin/pkg_add/pkg_create +++ b/usr.sbin/pkg_add/pkg_create @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_create,v 1.36 2005/08/07 14:18:04 espie Exp $ +# $OpenBSD: pkg_create,v 1.37 2005/08/14 12:01:08 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -378,6 +378,7 @@ for my $special (info_names()) { my $f = OpenBSD::PackingElement::File->add($plist, $special); $f->{ignore} = 1; $f->{md5} = OpenBSD::md5::fromfile($dir.$special); + $f->{size} = (stat $dir.$special)[7]; } if (defined $opt_p) { |