main: re-enable --variable pkg-config bug emulation because downstreams take advantage of it

pull/119/head
William Pitcock 2017-04-01 18:30:12 -05:00
parent a7f8a809c1
commit 30c35b7096
1 changed files with 7 additions and 1 deletions

8
main.c
View File

@ -337,7 +337,7 @@ print_variable(pkgconf_client_t *client, pkgconf_pkg_t *pkg, const char *variabl
var = pkgconf_tuple_find(client, &pkg->vars, variable);
if (var != NULL)
printf("%s\n", var);
printf("%s", var);
}
static bool
@ -352,11 +352,17 @@ apply_variable(pkgconf_client_t *client, pkgconf_pkg_t *world, void *variable, i
pkgconf_dependency_t *dep = iter->data;
pkg = pkgconf_pkg_verify_dependency(client, dep, NULL);
if (iter->prev != NULL)
printf(" ");
print_variable(client, pkg, variable);
pkgconf_pkg_free(&pkg_client, pkg);
}
printf("\n");
return true;
}