diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-11-06 12:19:18 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-11-06 12:19:18 +0000 |
commit | 34617830694d282bd732b97b341d8023d88e9512 (patch) | |
tree | 146675fd8293c2ad0bc1b41463bd9e3697335f5b /usr.sbin/pkg_add/OpenBSD/Add.pm | |
parent | 7165c756e826b4e22c30cc30c52fe0808aba618e (diff) |
mark whole state for `replacing' so that only file entries get tempname
markers. Explain about tempname to PackingElement, so that we become
able to save temporary packing-lists (e.g, borking during replace will
now work).
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 005526587f2..9b9dcb94716 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.5 2004/11/01 19:21:58 espie Exp $ +# $OpenBSD: Add.pm,v 1.6 2004/11/06 12:19:17 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -162,7 +162,7 @@ sub install my $fullname = $self->fullname(); my $destdir = $state->{destdir}; - if (defined $self->{tempname}) { + if (defined $state->{replacing}) { if (defined $self->{link}) { link($destdir.$self->{link}, $destdir.$fullname); |