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 /qfile.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 'qfile.c')
-rw-r--r--qfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qfile.c b/qfile.c
index 1480789..1a6b470 100644
--- a/qfile.c
+++ b/qfile.c
@@ -175,7 +175,7 @@ static int qfile_cb(tree_pkg_ctx *pkg_ctx, void *priv)
atom = tree_get_atom(pkg_ctx, false);
warnp("Could not read real path of \"%s\" (from %s)",
fullpath,
- atom_format("%[CATEGORY]%[PF]", atom, false));
+ atom_format("%[CATEGORY]%[PF]", atom));
warn("We'll never know whether \"%s\" was a result "
"for your query...", e->name);
}
@@ -232,7 +232,7 @@ static int qfile_cb(tree_pkg_ctx *pkg_ctx, void *priv)
fmt = "%[CATEGORY]%[PN]";
}
}
- printf("%s", atom_format(fmt, atom, false));
+ printf("%s", atom_format(fmt, atom));
if (quiet)
puts("");
else