Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Provide instructions on how to unset the 'vital' flag.
Glen Barber committed 9 years ago
commit da418cd03d265f93696555c4f8d9bdc0db941f2b
parent f78c144d8dd279e5e6f53fc07d62e08cb47a78ad
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;
			}