Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not try to update disabled repositories
Baptiste Daroussin committed 12 years ago
commit 5925b91226d592173ae93d5df78fc39a88c58292
parent 8c2f188
2 files changed +5 -0
modified libpkg/update.c
@@ -626,6 +626,9 @@ pkg_update(struct pkg_repo *repo, bool force)

	sqlite3_initialize();

+
	if (!pkg_repo_enabled(repo))
+
		return (EPKG_OK);
+

	if (pkg_config_string(PKG_CONFIG_DBDIR, &dbdir) != EPKG_OK) {
		pkg_emit_error("Cant get dbdir config entry");
		return (EPKG_FATAL);
modified pkg/update.c
@@ -57,6 +57,8 @@ pkgcli_update(bool force) {
		printf("Updating repository catalogue\n");

	while (pkg_repos(&r) == EPKG_OK) {
+
		if (!pkg_repo_enabled(r))
+
			continue;
		retcode = pkg_update(r, force);
		if (retcode == EPKG_UPTODATE) {
			if (!quiet)