From 973a3f42d235a7e36952455685af32830f4c9694 Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 27 Dec 2014 23:58:52 +0000 Subject: [PATCH] make it at least work a wee little bit. --- usr.sbin/pkg_add/OpenBSD/FwUpdate.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm b/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm index 44319862f11..1e16608de95 100644 --- a/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm +++ b/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: FwUpdate.pm,v 1.1 2014/12/27 16:05:42 espie Exp $ +# $OpenBSD: FwUpdate.pm,v 1.2 2014/12/27 23:58:52 espie Exp $ # # Copyright (c) 2014 Marc Espie # @@ -57,10 +57,12 @@ sub handle_options $state->{destdir} = ''; $state->{wantntogo} = 0; $state->{subst}->add('repair', 1); + $state->finish_init; } sub finish_init { + my $state = shift; $ENV{PKG_PATH} = $state->{path}; if ($state->verbose && !$state->opt('d')) { $state->say("PKG_PATH=#1", $state->{path}); @@ -162,8 +164,8 @@ sub mark_set_for_deletion sub do_quirks { my ($self, $state) = @_; - $self->SUPER::do_quirks($state); - $state->finish_init; +# $self->SUPER::do_quirks($state); +# $state->finish_init; } sub process_parameters -- 2.20.1