pkg: use exact same error message as pkg-config when dependency is unresolvable

feature/tap-sh pkgconf-0.1
William Pitcock 2011-07-25 17:03:06 -05:00
parent 3e69f4c7a6
commit 3d502159e6
1 changed files with 5 additions and 2 deletions

5
pkg.c
View File

@ -54,7 +54,10 @@ pkg_traverse(pkg_t *root,
pkgdep = pkg_find(node->package); pkgdep = pkg_find(node->package);
if (pkgdep == NULL) if (pkgdep == NULL)
{ {
fprintf(stderr, "dependency '%s' is not satisfiable, see PKG_CONFIG_PATH\n", node->package); fprintf(stderr, "Package %s was not found in the pkg-config search path.\n", node->package);
fprintf(stderr, "Perhaps you should add the directory containing `%s.pc'\n", node->package);
fprintf(stderr, "to the PKG_CONFIG_PATH environment variable\n");
fprintf(stderr, "No package '%s' found\n", node->package);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }