Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
triggers: when doing manual pkg add: execute the triggers
Baptiste Daroussin committed 4 years ago
commit 3e41a0eac30329dca413cc5a103e97716b0fac21
parent ef02a8c
1 file changed +6 -0
modified libpkg/pkg_add.c
@@ -1270,6 +1270,12 @@ pkg_add_common(struct pkgdb *db, const char *path, unsigned flags,
		pkg_emit_message(message->buf);
		xstring_free(message);
	}
+
	/*
+
	 * Command pkg add has been invoked, note that in this case
+
	 * it is impossible to get cleanup triggers to execute
+
	 */
+
	if (remote == NULL)
+
		triggers_execute(NULL);

cleanup:
	if (a != NULL) {