Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Return an error if the abi cannot be determined
Baptiste Daroussin committed 11 years ago
commit a3824f6df26df4e6d6937e3ec20d69460204a8de
parent 8cc28052697952009b8ecc0133f4ca520ca0b99c
1 file changed +5 -0
modified libpkg/pkg_config.c
@@ -976,6 +976,11 @@ pkg_ini(const char *path, const char *reposdir, pkg_init_flags flags)
	ucl_object_unref(obj);
	ucl_parser_free(p);

+
	if (strcmp(pkg_object_string(pkg_config_get("ABI")), "unknown") == 0) {
+
		pkg_emit_error("Unable to determine ABI");
+
		return (EPKG_FATAL);
+
	}
+

	pkg_debug(1, "%s", "pkg initialized");

	/* Start the event pipe */