Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not add to the universe remote packages as deps that are identical to local ones
Baptiste Daroussin committed 9 years ago
commit b1eda6cb5dc006048bc4774c063b6d36696dde87
parent 6e1d9f9
1 file changed +4 -2
modified libpkg/pkg_jobs_universe.c
@@ -335,7 +335,8 @@ pkg_jobs_universe_process_deps(struct pkg_jobs_universe *universe,

				if (npkg != NULL) {
					/* Set reason for upgrades */
-
					pkg_jobs_need_upgrade(rpkg, npkg);
+
					if (!pkg_jobs_need_upgrade(rpkg, npkg))
+
						continue;
					/* Save automatic flag */
					rpkg->automatic = npkg->automatic;
				}
@@ -355,7 +356,8 @@ pkg_jobs_universe_process_deps(struct pkg_jobs_universe *universe,

			if (npkg != NULL) {
				/* Set reason for upgrades */
-
				pkg_jobs_need_upgrade(rpkg, npkg);
+
				if (!pkg_jobs_need_upgrade(rpkg, npkg))
+
					continue;
				/* Save automatic flag */
				rpkg->automatic = npkg->automatic;
			}