summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-04-15 10:01:14 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-04-15 10:01:14 +0000
commit9233b9c0f75571037ca6875b8bc9a847da92afea (patch)
tree32c6de799989e93d6bcf959629f73cecd1a1cbba /usr.sbin/pkg_add/OpenBSD/PackingElement.pm
parent64c875a8a04bbbfb8c016dfdcf21e3e1f33e4978 (diff)
do not rely on side-effects in there.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
index cf4d384b6b1..c78a3e65d45 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.86 2006/12/16 12:28:15 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.87 2007/04/15 10:01:13 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -500,7 +500,7 @@ sub add
{
my ($class, $plist, @args) = @_;
- $plist->{state}->{lastfile}->add_md5(pack('H*', $'));
+ $plist->{state}->{lastfile}->add_md5(pack('H*', $args[0]));
return;
}