diff options
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 3614324c28c..4e00d7af7a6 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.174 2018/02/27 22:46:53 espie Exp $ +# $OpenBSD: Add.pm,v 1.175 2018/06/15 09:37:29 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -100,6 +100,8 @@ sub perform_installation { my ($handle, $state) = @_; + return if $state->defines('stub'); + $state->{partial} = $handle->{partial}; $state->progress->visit_with_size($handle->{plist}, 'install'); if ($handle->{location}{early_close}) { @@ -113,6 +115,8 @@ sub perform_extraction { my ($handle, $state) = @_; + return if $state->defines('stub'); + $handle->{partial} = {}; $state->{partial} = $handle->{partial}; $state->{archive} = $handle->{location}; @@ -412,6 +416,7 @@ sub prepare_for_addition $state->{problems}++; return; } + return if $state->defines('stub'); my $s = $state->vstat->add($fname, $self->{tieto} ? 0 : $self->{size}, $pkgname); return unless defined $s; |