Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add a temporary fudge to avoid declaring all the repos out there instantly out of date.
Matthew Seaman committed 13 years ago
commit 607808d60fa9d2a40bc2cece7c8d9d858a62be7a
parent b428a95
1 file changed +4 -0
modified libpkg/pkg_repo.c
@@ -843,6 +843,10 @@ pkg_check_repo_version(struct pkgdb *db, const char *database)
	 * pkgng
	 */

+
	/* --- Temporary ---- Grandfather in the old repo schema version
+
	   so this patch doesn't immediately invalidate all the repos out there */
+
	if (reposcver == 2)
+
		reposcver = 2000;

	if (reposcver < REPO_SCHEMA_VERSION) {
		pkg_emit_error("Repo %s (schema version %d) is too old - need at "