diff options
author | 2019-06-13 20:13:57 +0200 | |
---|---|---|
committer | 2019-06-13 20:13:57 +0200 | |
commit | b2418b1406551ce5b540aaf8d332ec53ddd52e01 (patch) | |
tree | 348451de106dd6eea6a874023cc90d401f70a9ac /qfile.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 'qfile.c')
-rw-r--r-- | qfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |