From: espie Date: Wed, 21 Oct 2015 10:11:13 +0000 (+0000) Subject: make sure ProgressMeter gets set up. Fixes some weirdness in package installs, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e05b4ceee1e6a7570d17402c157ce84320f9e109;p=openbsd make sure ProgressMeter gets set up. Fixes some weirdness in package installs, as it now must contain a proper linkback to its own state. --- diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm index 5919e29d603..8e858b79eb5 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCheck.pm,v 1.56 2015/05/24 07:53:14 espie Exp $ +# $OpenBSD: PkgCheck.pm,v 1.57 2015/10/21 10:11:13 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -44,6 +44,7 @@ sub new $state->{subst} = $mystate->{subst}; $state->{interactive} = $mystate->{interactive}; $state->{destdir} = $mystate->{destdir}; + $state->progress->setup($state->opt('x'), $state->opt('m'), $state); bless { state => $state}, $class; }