1 |
commit: 20844dc943700cca72bbb6896f42adcd30de41e3 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 2 08:13:29 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 2 08:45:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=20844dc9 |
7 |
|
8 |
qlop: silently drop -l when -d is used with -E |
9 |
|
10 |
While -E defaults to -l (last merge), silently drop it when -d is used. |
11 |
|
12 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
13 |
|
14 |
man/qlop.1 | 4 ++-- |
15 |
qlop.c | 5 +++-- |
16 |
2 files changed, 5 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/man/qlop.1 b/man/qlop.1 |
19 |
index 1b63edd..7027f14 100644 |
20 |
--- a/man/qlop.1 |
21 |
+++ b/man/qlop.1 |
22 |
@@ -1,5 +1,5 @@ |
23 |
.\" generated by mkman.py, please do NOT edit! |
24 |
-.TH qlop "1" "Nov 2019" "Gentoo Foundation" "qlop" |
25 |
+.TH qlop "1" "May 2020" "Gentoo Foundation" "qlop" |
26 |
.SH NAME |
27 |
qlop \- emerge log analyzer |
28 |
.SH SYNOPSIS |
29 |
@@ -66,7 +66,7 @@ Show autoclean unmerge history. |
30 |
Show sync history. |
31 |
.TP |
32 |
\fB\-E\fR, \fB\-\-emerge\fR |
33 |
-Show last merge like how emerge(1) -v would show it. |
34 |
+Show last merge similar to how emerge(1) -v would show it. |
35 |
.TP |
36 |
\fB\-e\fR, \fB\-\-endtime\fR |
37 |
Report time at which the operation finished (iso started). |
38 |
|
39 |
diff --git a/qlop.c b/qlop.c |
40 |
index cbe3b58..3e38adf 100644 |
41 |
--- a/qlop.c |
42 |
+++ b/qlop.c |
43 |
@@ -58,7 +58,7 @@ static const char * const qlop_opts_help[] = { |
44 |
"Show unmerge history", |
45 |
"Show autoclean unmerge history", |
46 |
"Show sync history", |
47 |
- "Show last merge like how emerge(1) -v would show it", |
48 |
+ "Show last merge similar to how emerge(1) -v would show it", |
49 |
"Report time at which the operation finished (iso started)", |
50 |
"Show current emerging packages", |
51 |
"Limit selection to this time (1st -d is start, 2nd -d is end)", |
52 |
@@ -1367,7 +1367,8 @@ int qlop_main(int argc, char **argv) |
53 |
|
54 |
/* handle -l / -d conflict */ |
55 |
if (start_time != 0 && m.show_lastmerge) { |
56 |
- warn("-l and -d cannot be used together, dropping -l"); |
57 |
+ if (m.show_emerge) |
58 |
+ warn("-l and -d cannot be used together, dropping -l"); |
59 |
m.show_lastmerge = 0; |
60 |
} |