diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-10-28 09:51:59 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-10-28 09:51:59 +0000 |
commit | 2ee80d0303a231b6478223626a6f89587dc6a975 (patch) | |
tree | 3821f2b998edbdcca0f1cd5d4e5d22e0486dc7e9 /usr.sbin/pkg_add/OpenBSD | |
parent | aea4b52e5d2b66bddb8bceb370937aad030033c2 (diff) |
"destate" comments, let them know in which cwd they stand.
This is actually useful for update-plist...
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 8 |
1 files changed, 7 insertions, 1 deletions
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 <espie@openbsd.org> # @@ -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) = @_; |