diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-04-30 08:43:20 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-04-30 08:43:20 +0000 |
commit | 1edec451fbb0d7fca80520f53d3a6c3e17fb47ee (patch) | |
tree | 43825c0999374613dc3a5d6ae74ca520ceb7e655 /usr.sbin/pkg_add/pkg_create | |
parent | 4c46fde6963196f34e167734b13fcffab2241d1f (diff) |
add most things concerning @ignore, since we now have ways nicer to do
things.
We still recognize @ignore in packing-lists for now, but we don't handle
it. Not that register-plist has smart enough comparison functions that
it doesn't care about @ignore at all...
Diffstat (limited to 'usr.sbin/pkg_add/pkg_create')
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index c0356e0f3f7..5f27895b43c 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.64 2007/04/29 12:46:18 espie Exp $ +# $OpenBSD: pkg_create,v 1.65 2007/04/30 08:43:19 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -442,9 +442,8 @@ if (defined $opt_q) { for my $special (info_names()) { next unless -f $dir.$special; my $f = OpenBSD::PackingElement::File->add($plist, $special); - $f->{ignore} = 1; - $f->{md5} = OpenBSD::md5::fromfile($dir.$special); - $f->{size} = (stat $dir.$special)[7]; + $f->add_md5(OpenBSD::md5::fromfile($dir.$special)); + $f->add_size((stat $dir.$special)[7]); } OpenBSD::PackingElement::File->add($plist, CONTENTS); } |