summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-02-03 11:35:45 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-02-03 11:35:45 +0000
commitd92324d5ec21f829ea2c34f0a85d1480a96d449d (patch)
treea8dc1b3c8610e6e68fc0c750bc7698e1cc3cd3ee /usr.sbin/pkg_add/OpenBSD/PkgAdd.pm
parent7d2f9ae99ce527d1c79c227b7f560b9180da7292 (diff)
don't keep tied information around !
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PkgAdd.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgAdd.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm
index 393cd0fcfe1..6458a7e1154 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgAdd.pm,v 1.55 2014/02/02 15:22:36 espie Exp $
+# $OpenBSD: PkgAdd.pm,v 1.56 2014/02/03 11:35:44 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -949,13 +949,13 @@ sub process_set
}
}
if ($set->newer > 0 && $set->older_to_do > 0 && !$state->defines('donttie')) {
- $set->{sha} = {};
+ my $sha = {};
for my $o ($set->older_to_do) {
- $o->{plist}->hash_files($set->{sha}, $state);
+ $o->{plist}->hash_files($sha, $state);
}
for my $n ($set->newer) {
- $n->{plist}->tie_files($set->{sha}, $state);
+ $n->{plist}->tie_files($sha, $state);
}
}
if ($set->newer > 0 || $set->older_to_do > 0) {