summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-08-19 00:10:57 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-08-19 00:10:57 +0000
commit89e55d378db50f151eae9335ca5afeb35125d1c8 (patch)
treee08f84924ace0960155cea8d64416b280b3cf633 /usr.sbin/pkg_add
parentc8ea3fae0ce6003ef9d73b5beef568ecb24a4aad (diff)
remove tempdir right away if it turns out we're not dealing with a
package at all.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageLocator.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
index 394bc7055c1..0706d61bc12 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageLocator.pm,v 1.18 2005/08/16 11:09:28 espie Exp $
+# $OpenBSD: PackageLocator.pm,v 1.19 2005/08/19 00:10:56 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -429,6 +429,9 @@ OKAY:
}
}
$self->close();
+
+ require File::Path;
+ File::Path::rmtree($dir);
return undef;
}
}