Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg_create fails if it couldn't read the manifest
Baptiste Daroussin committed 14 years ago
commit f12a5096faf027fd1c60b9ec247c9c5dce1a8995
parent cbd0adc
1 file changed +4 -1
modified libpkg/pkg_create.c
@@ -101,7 +101,10 @@ pkg_create_fakeroot(const char *outdir, pkg_formats format, const char *rootdir,
	if (pkg == NULL)
		goto cleanup;

-
	ret = pkg_load_manifest_file(pkg, manifest_path);
+
	if ((ret = pkg_load_manifest_file(pkg, manifest_path)) != EPKG_OK) {
+
		ret = EPKG_FATAL;
+
		goto cleanup;
+
	}

	/* Create the archive */
	pkg_archive = pkg_create_archive(outdir, pkg, format, 0);