Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Warn about the fact @unexec is deprecated in pkg-plist
Baptiste Daroussin committed 6 years ago
commit 4c1e2147891921ae3d81279ea036edc207361429
parent c944d28
1 file changed +7 -0
modified libpkg/pkg_ports.c
@@ -693,6 +693,13 @@ exec(struct plist *p, char *line, struct file_attr *a)
static int
unexec(struct plist *p, char *line, struct file_attr *a)
{
+
	static bool warned_deprecated_unexec = false;
+

+
	if (!warned_deprecated_unexec) {
+
		warned_deprecated_unexec = true;
+
		pkg_emit_error("Warning: @unexec is deprecated, please"
+
		    " use @[pre|post]unexec");
+
	}
	return (meta_exec(p, line, a, UNEXEC));
}