diff options
author | Fabian Groffen <grobian@gentoo.org> | 2022-05-20 19:02:14 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2022-05-20 19:02:14 +0200 |
commit | 4f3a79cc3e9399a723dc0a08c4122ed12e2f1001 (patch) | |
tree | 5f63d0a81be24c5e31cb46f23652ea10c5a545f0 | |
parent | libq/atom: allow including BUILDID in atom_format (diff) | |
download | portage-utils-4f3a79cc3e9399a723dc0a08c4122ed12e2f1001.tar.gz portage-utils-4f3a79cc3e9399a723dc0a08c4122ed12e2f1001.tar.bz2 portage-utils-4f3a79cc3e9399a723dc0a08c4122ed12e2f1001.zip |
qlist: print BUILD_ID for binpkgs (if any)
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r-- | qlist.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* - * Copyright 2005-2021 Gentoo Foundation + * Copyright 2005-2022 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 * * Copyright 2005 Martin Schlemmer - <azarah@gentoo.org> @@ -501,11 +501,15 @@ int qlist_main(int argc, char **argv) } snprintf(qfmt, sizeof(qfmt), "%sCATEGORY%s" "%s%s%s" /* PN/PF */ + "%s%s%s" /* BUILDID */ "%s%s%s" /* SLOT */ "%s%s%s" /* SUBSLOT */ "%s%s%s", /* REPO */ l, r, l, verbose ? "PF" : "PN", r, + verbose && state.do_binpkgs ? l : "", + verbose && state.do_binpkgs ? "BUILDID" : "", + verbose && state.do_binpkgs ? r : "", show_slots >= 1 ? l : "", show_slots >= 1 ? "SLOT" : "", show_slots >= 1 ? r : "", |