Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
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 6387bd430d24cd36e83c70b0134d2a22c46da99f
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);
	}