summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-08-06 07:37:35 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-08-06 07:37:35 +0000
commitacc189bed6f0150f1e0cfb955c1872fb3c42e868 (patch)
treee5c612a4f34177d9e66df59ffa5d903cf06cbe95
parent41e67bd6f3c85c3f94c21f9cf6d80ec487b26e7c (diff)
Extradir name.
Don't bother deleting it if it's not there.
-rw-r--r--usr.sbin/pkg_add/pkg_delete5
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);
}