Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix the fix :)
Baptiste Daroussin committed 14 years ago
commit 39ae604d8d19d392bd458a46c0c2d3e30cc99b50
parent a445d92
1 file changed +2 -2
modified libpkg/pkg_add.c
@@ -212,13 +212,13 @@ pkg_add(struct pkgdb *db, const char *path, int flags)
	/*
	 * Execute post install scripts
	 */
-
	if ((flags & PKG_ADD_UPGRADE) == 0)
+
	if (flags & PKG_ADD_UPGRADE_NEW)
		pkg_script_run(pkg, PKG_SCRIPT_POST_UPGRADE);
	else
		pkg_script_run(pkg, PKG_SCRIPT_POST_INSTALL);

	cleanup_reg:
-
	if (flags ^ PKG_ADD_UPGRADE)
+
	if ((flags & PKG_ADD_UPGRADE) == 0)
		pkgdb_register_finale(db, retcode);

	cleanup: