Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg_version_cmp() was previously used with the sense reversed to the replacement pkg_version_change(). Everywhere else it is
Matthew Seaman committed 12 years ago
commit 99c4792a67952f335533a0f133527ea945d64ea7
parent 6387bd4
1 file changed +2 -2
modified libpkg/pkg_jobs.c
@@ -688,11 +688,11 @@ newer_than_local_pkg(struct pkg_jobs *j, struct pkg *rp, bool force)
	/* compare versions */
	cmp = pkg_version_change(rp);

-
	if (cmp == 1) {
+
	if (cmp == -1) {
		pkg_free(lp);
		return (true);
	}
-
	if (cmp == -1) {
+
	if (cmp == 1) {
		pkg_free(lp);
		return (false);
	}