Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Merge pull request #708 from rosorio/master
Matthew Seaman committed 12 years ago
commit a6c2cbad9be80c3b2d7afc8106b999a1696f1c1a
parent 776d5cf28feebe471c2926337e354a39d70f6039
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;