Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2018 16:35:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 229393] ports-mgmt/pkg: Show which options changed if upgrade needed
Message-ID:  <bug-229393-32340-fzukc06tn8@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-229393-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-229393-32340@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg mailing li=
st
<pkg@FreeBSD.org> for maintainer-feedback:
Bug 229393: ports-mgmt/pkg: Show which options changed if upgrade needed
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229393



--- Description ---
`pkg upgrade` detects changed options in a package and requires reinstallat=
ion,
but only shows minimal information about the reason:

    Installed packages to be REINSTALLED:
	    mypackage-1.11 (options changed)

This patch prints before/after options and their values so the sysadmin can
clearly see why a package is reinstalled.

Why? Building production packages yourself with regular ports tree updates =
and
custom options can often lead to this case, and when doing live deployments,
you want to be sure that no critical options have been altered.

I wanted to combine this with {-v,--verbose}, but apparently `pkg upgrade
{-v,--vulnerable}` already exists, overriding the default expectation of 'v'
option meaning verbose.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229393-32340-fzukc06tn8>