diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-06-13 20:13:57 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-06-13 20:13:57 +0200 |
commit | b2418b1406551ce5b540aaf8d332ec53ddd52e01 (patch) | |
tree | 348451de106dd6eea6a874023cc90d401f70a9ac /qdepends.c | |
parent | tests/qmanifest: allow gpg_import to fail (diff) | |
download | portage-utils-b2418b1406551ce5b540aaf8d332ec53ddd52e01.tar.gz portage-utils-b2418b1406551ce5b540aaf8d332ec53ddd52e01.tar.bz2 portage-utils-b2418b1406551ce5b540aaf8d332ec53ddd52e01.zip |
libq/atom: make atom_format smarter to unbreak Puppet
The default portage provider in Puppet uses qatom in a rather clumpsy
way. The newer formatting broke it because they don't use explicit
formatting. Make atom_format somewhat smarter to unbreak Puppet's
usage.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qdepends.c')
-rw-r--r-- | qdepends.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -149,7 +149,7 @@ qdepends_results_cb(tree_pkg_ctx *pkg_ctx, void *priv) ret = 1; datom = tree_get_atom(pkg_ctx, true); - printf("%s:", atom_format(state->format, datom, 0)); + printf("%s:", atom_format(state->format, datom)); } xarrayfree_int(state->deps); @@ -222,7 +222,7 @@ qdepends_results_cb(tree_pkg_ctx *pkg_ctx, void *priv) if (!firstmatch) { datom = tree_get_atom(pkg_ctx, true); - printf("%s:", atom_format(state->format, datom, 0)); + printf("%s:", atom_format(state->format, datom)); } firstmatch = true; @@ -251,7 +251,7 @@ qdepends_results_cb(tree_pkg_ctx *pkg_ctx, void *priv) if (!firstmatch) { datom = tree_get_atom(pkg_ctx, true); - printf("%s:", atom_format(state->format, datom, 0)); + printf("%s:", atom_format(state->format, datom)); } firstmatch = true; |