Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Provide instructions on how to unset the 'vital' flag.
Glen Barber committed 9 years ago
commit da418cd03d265f93696555c4f8d9bdc0db941f2b
parent f78c144
1 file changed +2 -0
modified libpkg/pkg_jobs.c
@@ -2006,6 +2006,8 @@ pkg_jobs_execute(struct pkg_jobs *j)
			p = ps->items[0]->pkg;
			if (ps->type == PKG_SOLVED_DELETE && p->vital && ((flags & PKG_DELETE_FORCE) == 0)) {
				pkg_emit_error("Cannot delete vital pkg: %s!", p->name);
+
				pkg_emit_error("If you are sure you want to remove %s, ", p->name);
+
				pkg_emit_error("unset the 'vital' flag with: pkg set -v 0 %s", p->name);
				retcode = EPKG_FATAL;
				goto cleanup;
			}