Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix string comparision for reponame.
Vsevolod Stakhov committed 11 years ago
commit d7df5a9d4f5de682c938a3a7ca76aca3a4cb898e
parent f27bcfa
1 file changed +1 -2
modified libpkg/pkg_jobs.c
@@ -1306,8 +1306,7 @@ pkg_need_upgrade(struct pkg *rp, struct pkg *lp, bool recursive)
	pkg_get(lp, PKG_ANNOTATIONS, &obj);
	an = pkg_object_find(obj, "repository");
	if (an != NULL)  {
-
		if (strcmp(pkg_repo_ident(pkg_repo_find_name(reponame)),
-
				ucl_object_tostring(an)) != 0)  {
+
		if (strcmp(reponame, ucl_object_tostring(an)) != 0) {
			/*
			 * If we have packages from some different repo, then
			 * we should not try to detect options changed and so on,