commit: 3080e828810d81a292c97226b115f390f487f370
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat May 2 08:43:23 2020 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat May 2 08:45:42 2020 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=3080e828
qlop: show unmerged packages also in pseudo emerge format with -E
Packages unmerged (e.g. emerge -c) or unmerged in a blocker situation
showed up in -E mode in the normal way, e.g.:
2020-04-30T20:03:51 <<< www-servers/nginx-1.17.10
Make it show like in pseudo emerge output:
D www-servers/nginx-1.17.10
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
qlop.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/qlop.c b/qlop.c
index 3e38adf..69133bb 100644
--- a/qlop.c
+++ b/qlop.c
@@ -825,6 +825,22 @@ static int do_emerge_log(
flags->do_time
? ": " : "",
flags->do_time ?
fmt_elapsedtime(flags, elapsed) : "");
+ } else if (flags->show_emerge) {
+ /* emerge never lists packages
it unmerges, only
+ * when part of installation of
another package,
+ * so there is nothing to
follow here. We could
+ * use D(elete), R(emove) or
(U)nmerge here,
+ * which all three are already
in use. I've
+ * chosen to use D in the first
column here,
+ * because D is only used
together with U, so it
+ * is the only distinquishable
choice, appearing
+ * in the place of N(ew). */
+ printf("%sD%s %s", RED, NORM,
+
atom_format(flags->fmt, pkgw->atom));
+ if (flags->do_time)
+ printf(": %s\n",
fmt_elapsedtime(flags, elapsed));
+ else
+ printf("\n");
} else if (flags->do_time) {
printf("%s <<< %s: %s\n",
fmt_date(flags,
pkgw->tbegin, tstart),