Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg-add: Add error when pkg_parse_manifest() fails
Bryan Drewery committed 11 years ago
commit b823f615e4716aa3c3a7f36f9fcd01866614282f
parent 792a178
1 file changed +2 -0
modified libpkg/pkg.c
@@ -1367,6 +1367,8 @@ pkg_open2(struct pkg **pkg_p, struct archive **a, struct archive_entry **ae,
			ret = pkg_parse_manifest(pkg, buffer, len, keys);
			free(buffer);
			if (ret != EPKG_OK) {
+
				pkg_emit_error("%s is not a valid package: "
+
				    "Invalid manifest", path);
				retcode = EPKG_FATAL;
				goto cleanup;
			}