Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Implement pkg pinning for pkg itself
Vsevolod Stakhov committed 9 years ago
commit 6cfc8319074a4d67936c0a77e6cf2f8de60a10cf
parent 6ba1d887a79bb557538116da0d7e2b5c6c04c9bd
1 file changed +5 -1
modified libpkg/pkg_jobs.c
@@ -732,7 +732,11 @@ new_pkg_version(struct pkg_jobs *j)
			DL_FOREACH(nit, cit) {
				if (pkg_version_change_between (cit->pkg, p) == PKG_UPGRADE) {
					/* We really have newer version which is not installed */
-
					ret = true;
+
					/* Preserve repo pinning logic */
+
					if ((j->reponame && strcmp (cit->pkg->reponame, j->reponame) == 0) ||
+
							(!j->reponame && strcmp (cit->pkg->reponame, p->reponame) == 0)) {
+
						ret = true;
+
					}
				}
			}
		}