Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
upgrade: when in dry-run do not test for newer pkg version
Baptiste Daroussin committed 5 years ago
commit 9c2b4022565c368bb49eee52bce3f41d2725f4c5
parent b8dfc59a565d325280b35b90c4ea9209ab14a173
1 file changed +2 -1
modified libpkg/pkg_jobs.c
@@ -1640,7 +1640,8 @@ jobs_solve_install_upgrade(struct pkg_jobs *j)
	int retcode = 0;

	/* Check for new pkg. Skip for 'upgrade -F'. */
-
	if ((j->flags & PKG_FLAG_SKIP_INSTALL) == 0 &&
+
	if (((j->flags & PKG_FLAG_SKIP_INSTALL) == 0 &&
+
	    (j->flags & PKG_FLAG_DRY_RUN) == 0) &&
	    (j->flags & PKG_FLAG_PKG_VERSION_TEST) == PKG_FLAG_PKG_VERSION_TEST)
		if (new_pkg_version(j)) {
			j->flags &= ~PKG_FLAG_PKG_VERSION_TEST;