aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-06-13 20:13:57 +0200
committerFabian Groffen <grobian@gentoo.org>2019-06-13 20:13:57 +0200
commitb2418b1406551ce5b540aaf8d332ec53ddd52e01 (patch)
tree348451de106dd6eea6a874023cc90d401f70a9ac /qdepends.c
parenttests/qmanifest: allow gpg_import to fail (diff)
downloadportage-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/qdepends.c b/qdepends.c
index f560c31..f5aa5a5 100644
--- a/qdepends.c
+++ b/qdepends.c
@@ -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;