diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-12-05 13:39:29 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-12-05 13:39:29 +0000 |
commit | 77716c1b0908c0cd97cba4c2b9bce6f607a67e5a (patch) | |
tree | e07ab99532a8bf2b51227e6c9047b419e5261761 /usr.sbin/pkg_add/OpenBSD/Add.pm | |
parent | f0449af2c4fc3c57615c8a7651be1939f01c8a45 (diff) |
make sure set_modes always get called for a `real' extraction.
Problem noticed by sturm@
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 3219e26c0c5..af07a008a66 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.45 2005/11/02 22:26:51 espie Exp $ +# $OpenBSD: Add.pm,v 1.46 2005/12/05 13:39:28 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -347,11 +347,12 @@ sub install print "extracting $destdir$fullname\n" if $state->{very_verbose}; if ($state->{not}) { $state->{archive}->skip(); + return; } else { $file->create(); - $self->set_modes($destdir.$fullname); } } + $self->set_modes($destdir.$fullname); } sub prepare_to_extract |