summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2017-10-07 10:35:35 +0000
committerMarc Espie <espie@cvs.openbsd.org>2017-10-07 10:35:35 +0000
commitdf2ccea670ed28f6ed55830c5f32793651e24c12 (patch)
tree4ce49999308a80ce53b678c6543f0df836e90d9e /usr.sbin/pkg_add
parent84ff8aba3eeb3d22cda947429e040d445a6075e4 (diff)
Adjust verbose message in case PKG_PATH is undefined.
Problem noticed by anton@
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgInfo.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm
index 8ec2ac9b4b8..0d0c7bc9c43 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgInfo.pm,v 1.47 2017/08/29 14:21:18 espie Exp $
+# $OpenBSD: PkgInfo.pm,v 1.48 2017/10/07 10:35:34 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -596,7 +596,8 @@ sub parse_and_run
if ($state->opt('Q')) {
require OpenBSD::Search;
- print "PKG_PATH=$ENV{PKG_PATH}\n" if $state->verbose;
+ $state->say("PKG_PATH=#1", $ENV{PKG_PATH} // "<undefined>")
+ if $state->verbose;
my $partial = OpenBSD::Search::PartialStem->new($state->opt('Q'));
my $r = $state->repo->match_locations($partial);