1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-19 02:17:27 +08:00

FreeBSD: explain the pkg_create() call

- the upstream API is undocumented, so dig in the C sources
  to get parameter names.
This commit is contained in:
Adriaan de Groot
2022-07-05 14:24:31 +02:00
parent 57e8cd1a81
commit 1b61cd1597

View File

@@ -81,6 +81,14 @@ public:
{
if (!isValid())
return false;
// The API in the FreeBSD sources (the header has no documentation),
// is as follows:
//
// int pkg_create(struct pkg_create *pc, const char *metadata, const char
// *plist, bool hash)
//
// We let the plist be determined from what is installed, and all
// the rest comes from the manifest data.
int r = pkg_create(d, manifest.c_str(), nullptr, false);
return r == 0;
}