This appears to have surfaced after the new SAT solver was introduced. See https://bugs.freenas.org/issues/9835 for downstream bug affecting PC-BSD users system update which relies upon pkg. Here's an example invocation: baitisj@raid:/usr/local/tmp$ pkg --version 1.5.2 baitisj@raid:/usr/local/tmp$ pkg upgrade -n Checking for upgrades (1 candidates): 100% Processing candidates (1 candidates): 100% pkg: Cannot solve problem using SAT solver: upgrade rule: upgrade local libreoffice-4.3.6 to remote libreoffice-4.3.7 cannot install package libreoffice, remove it from request? [Y/n]:
I've verified that this bug exists in pkg 1.5.99.2-d13232d built from git snapshot today
Something like this would ensure nothing like this happens. Defaulting to no. diff --git a/src/utils.c b/src/utils.c index 8d4fac8..6b1769a 100644 --- a/src/utils.c +++ b/src/utils.c @@ -123,6 +123,9 @@ vquery_yesno(bool deft, const char *msg, va_list ap) if (quiet) return (yes || default_yes || r); + if (dry_run) + return (false); + /* Do not query user if we have specified yes flag */ if (yes) return (true);
The above patch to utils.c caused failure in travis CI with: tests/frontend/php-pr.sh:pkg_phpextensions -> failed: atf-check failed
-gitlogs/#pkgng- pkg/master 29a933b Baptiste Daroussin: Merge pull request #1256 from baitisj/master...