forked from ariadne/pkgconf
main: re-enable --variable pkg-config bug emulation because downstreams take advantage of it
parent
a7f8a809c1
commit
30c35b7096
8
main.c
8
main.c
|
@ -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);
|
var = pkgconf_tuple_find(client, &pkg->vars, variable);
|
||||||
if (var != NULL)
|
if (var != NULL)
|
||||||
printf("%s\n", var);
|
printf("%s", var);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
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;
|
pkgconf_dependency_t *dep = iter->data;
|
||||||
|
|
||||||
pkg = pkgconf_pkg_verify_dependency(client, dep, NULL);
|
pkg = pkgconf_pkg_verify_dependency(client, dep, NULL);
|
||||||
|
|
||||||
|
if (iter->prev != NULL)
|
||||||
|
printf(" ");
|
||||||
|
|
||||||
print_variable(client, pkg, variable);
|
print_variable(client, pkg, variable);
|
||||||
|
|
||||||
pkgconf_pkg_free(&pkg_client, pkg);
|
pkgconf_pkg_free(&pkg_client, pkg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("\n");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue