Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
job: explain why a packages which vital flag has changed is reinstalled.
Baptiste Daroussin committed 7 months ago
commit 5d52075577a0ce020ef97633419d0e10968b0605
parent cc5c44a
1 file changed +7 -0
modified libpkg/pkg_jobs.c
@@ -1075,6 +1075,13 @@ pkg_jobs_need_upgrade(charv_t *system_shlibs, struct pkg *rp, struct pkg *lp)
		return (true);
	}

+
	if (lp->vital != rp->vital) {
+
		free(rp->reason);
+
		xasprintf(&rp->reason, "Vital flag changed: '%s' -> '%s'",
+
		    lp->vital ? "true" : "false", rp->vital ? "true" : "false");
+
		return (true);
+
	}
+

	/* compare options */
	for (;;) {
		if (!pkg_object_bool(pkg_config_get("PKG_REINSTALL_ON_OPTIONS_CHANGE")))