From 2ee80d0303a231b6478223626a6f89587dc6a975 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 28 Oct 2008 09:51:59 +0000 Subject: "destate" comments, let them know in which cwd they stand. This is actually useful for update-plist... --- usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'usr.sbin/pkg_add/OpenBSD') diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index e9b7ec20c8e..860aecba08a 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.151 2008/10/24 16:50:27 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.152 2008/10/28 09:51:58 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -564,6 +564,12 @@ our @ISA=qw(OpenBSD::PackingElement::Meta); sub keyword() { "comment" } __PACKAGE__->register_with_factory; +sub destate +{ + my ($self, $state) = @_; + $self->{cwd} = $state->{cwd}; +} + sub add { my ($class, $plist, $args) = @_; -- cgit v1.2.3