Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
If version is less than newversion, then it's and upgrade. Et. Seq.
Matthew Seaman committed 13 years ago
commit dee29e21bab78567a19f54d87b4b96d666042749
parent 296e5fe
1 file changed +2 -2
modified pkg/utils.c
@@ -560,13 +560,13 @@ print_jobs_summary(struct pkg_jobs *jobs, pkg_jobs_t type, const char *msg, ...)
				 * cannot have been locked yet. */
				if (newversion != NULL) {
					switch(pkg_version_cmp(version, newversion)) {
-
					case 1:
+
					case -1:
						printf("and may not be upgraded to version %s\n", newversion);
						break;
					case 0:
						printf("and may not be reinstalled\n");
						break;
-
					case -1:
+
					case 1:
						printf("and may not be downgraded to version %s\n", newversion);
						break;
					}