Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix transaction for non upgrade
Baptiste Daroussin committed 14 years ago
commit 097f233d6cbf835073f0617e7cecca104623d8db
parent e41281bf472e9d60b2e11aa7552f254ec27659d3
1 file changed +1 -1
modified libpkg/pkg_add.c
@@ -186,7 +186,7 @@ pkg_add(struct pkgdb *db, const char *path, int flags)

	/* register the package before installing it in case there are
	 * problems that could be caught here. */
-
	if (flags & PKG_ADD_UPGRADE)
+
	if (flags ^ PKG_ADD_UPGRADE)
		retcode = pkgdb_register_pkg(db, pkg, 0);
	else
		retcode = pkgdb_register_pkg(db, pkg, 1);