Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Better format new recommanded repository configuration format
Baptiste Daroussin committed 12 years ago
commit e6711c30f121f7ea918beef1bace947a686f54cd
parent 3abf741
1 file changed +8 -1
modified libpkg/pkg_config.c
@@ -838,7 +838,14 @@ load_repo_file(const char *repofile)
	}

	if (fallback) {
-
		pkg_emit_error("%s\n", ucl_object_emit(obj, UCL_EMIT_YAML));
+
		pkg_emit_error("%s file is in deprecated format you "
+
		    "should convert it to the following format:\n"
+
		    "====== BEGIN %s ======\n"
+
		    "%s"
+
		    "\n====== END %s ======\n",
+
		    repofile, repofile,
+
		    ucl_object_emit(obj, UCL_EMIT_YAML),
+
		    repofile);
	}

	if (obj->type == UCL_OBJECT)