summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-12-19 20:03:10 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-12-19 20:03:10 +0000
commitda96e89cc2fa81f090f1fea02189c0b3a4e21afa (patch)
tree581fec9c2d052b079f1a357c7af4a8e9a127c7d9 /usr.sbin/pkg_add/OpenBSD
parent2dc4b3a7ce9610b27a6574e213811dac889b40d5 (diff)
don't create path if -n.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Update.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm
index e3011b06aef..b8ff6ca6956 100644
--- a/usr.sbin/pkg_add/OpenBSD/Update.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Update.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Update.pm,v 1.42 2004/12/18 13:39:17 espie Exp $
+# $OpenBSD: Update.pm,v 1.43 2004/12/19 20:03:09 espie Exp $
#
# Copyright (c) 2004 Marc Espie <espie@openbsd.org>
#
@@ -69,12 +69,12 @@ sub extract
while (!-d $d && -e _) {
$d = dirname($d);
}
- if (!-e _) {
- File::Path::mkpath($d);
- }
if ($state->{not}) {
print "extracting tempfile under $d\n";
} else {
+ if (!-e _) {
+ File::Path::mkpath($d);
+ }
my ($fh, $tempname) = tempfile('pkg.XXXXXXXXXX',
DIR => $d);