Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Merge pull request #708 from rosorio/master
Matthew Seaman committed 12 years ago
commit a6c2cbad9be80c3b2d7afc8106b999a1696f1c1a
parent 776d5cf
1 file changed +5 -0
modified pkg/update.c
@@ -56,6 +56,11 @@ pkgcli_update(bool force) {
	if (!quiet)
		printf("Updating repository catalogue\n");

+
	if(pkg_repos_total_count() == 0) {
+
		fprintf(stderr, "No valid repository found.\n");
+
		return (EPKG_FATAL);
+
	}
+

	while (pkg_repos(&r) == EPKG_OK) {
		if (!pkg_repo_enabled(r))
			continue;