summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-30 12:52:08 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-30 12:52:08 +0000
commit3d5d9adbd951905c2763f1dc6bb67dc2fb2f767d (patch)
tree36a5dd0108b4d0cc5151e3e7c1b4da17dee481f7 /usr.sbin/pkg_add/OpenBSD/PackingElement.pm
parent56c084c338d17c6fd1b01bc15ad242674a0b314f (diff)
simplify the way partial installations get recorded: store elements
already installed in a hash, and do a shallow copy of the list when necessary, using make_copy. This removes a lot of action-at-a-distance in packing-list elements.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
index 9e81dbf5acf..32f5285e2a1 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.119 2007/05/30 12:29:19 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.120 2007/05/30 12:52:07 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -265,7 +265,6 @@ use File::Basename;
sub write
{
my ($self, $fh) = @_;
- return if defined $self->{zap};
print $fh "\@comment no checksum\n" if defined $self->{nochecksum};
$self->SUPER::write($fh);
if (defined $self->{md5}) {