#include <cstdlib>
#include <msp/core/algorithm.h>
+#include <msp/core/except.h>
#include <msp/fs/dir.h>
#include <msp/fs/stat.h>
#include <msp/fs/utils.h>
#else
(void)pkg;
(void)what;
- return string();
+ throw unsupported("run_pkgconfig");
#endif
}
{
for(const FS::Path &p: pkg_path)
{
+ if(!FS::exists(p))
+ continue;
+
builder.get_logger().log("files", "Traversing %s", p);
unsigned count = 0;
for(const string &f: list_files(p))
{
for(const FS::Path &p: binpkg_path)
{
+ if(!FS::exists(p))
+ continue;
+
builder.get_logger().log("files", "Traversing %s", p);
vector<string> files = list_filtered(p, "\\.bpk$");
for(const string &f: files)