Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not try to update if no repository are configured
Baptiste Daroussin committed 10 years ago
commit ffdb0c4a6733a13670a651aa356fe9a967e99f4a
parent 0844626
1 file changed +1 -1
modified src/install.c
@@ -193,7 +193,7 @@ exec_install(int argc, char **argv)
		retcode = EX_SOFTWARE;

	/* first update the remote repositories if needed */
-
	if (auto_update &&
+
	if (auto_update && pkg_repos_total_count() > 0 &&
	    (updcode = pkgcli_update(false, false, reponame)) != EPKG_OK)
		return (updcode);