diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-08-06 07:37:35 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-08-06 07:37:35 +0000 |
commit | acc189bed6f0150f1e0cfb955c1872fb3c42e868 (patch) | |
tree | e5c612a4f34177d9e66df59ffa5d903cf06cbe95 | |
parent | 41e67bd6f3c85c3f94c21f9cf6d80ec487b26e7c (diff) |
Extradir name.
Don't bother deleting it if it's not there.
-rw-r--r-- | usr.sbin/pkg_add/pkg_delete | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_delete b/usr.sbin/pkg_add/pkg_delete index 482e466732d..2ca51faa1f0 100644 --- a/usr.sbin/pkg_add/pkg_delete +++ b/usr.sbin/pkg_add/pkg_delete @@ -1,6 +1,6 @@ #!/usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_delete,v 1.31 2004/08/06 07:05:16 espie Exp $ +# $OpenBSD: pkg_delete,v 1.32 2004/08/06 07:37:34 espie Exp $ # # Copyright (c) 2003 Marc Espie. # @@ -264,11 +264,12 @@ sub delete print "problem deleting extra file $realname\n"; } -package OpenBSD::PackingElement::ExtraDir; +package OpenBSD::PackingElement::Extradir; sub delete { my ($self, $state) = @_; return unless $state->{extra}; + return unless -e $state->{destdir}.$self->fullname(); $self->SUPER::delete($state); } |