Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: /, tests/qlop/
Date: Sat, 31 Mar 2018 18:31:06
Message-Id: 1522520897.d5ad743480ae05fcfb6e92d29007402a7d7554ef.grobian@gentoo
1 commit: d5ad743480ae05fcfb6e92d29007402a7d7554ef
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 31 18:28:17 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 31 18:28:17 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=d5ad7434
7
8 qlop: fix false detection of end for aborted merge, bug #470168
9
10 When a merge gets aborted, ensure we forget about it if we find about
11 that same package later in another merge run.
12
13 Bug: https://bugs.gentoo.org/470168
14
15 qlop.c | 1 +
16 tests/qlop/dotest | 3 +++
17 2 files changed, 4 insertions(+)
18
19 diff --git a/qlop.c b/qlop.c
20 index c7ad42f..464a488 100644
21 --- a/qlop.c
22 +++ b/qlop.c
23 @@ -200,6 +200,7 @@ show_merge_times(char *package, const char *logfile, int average, char human_rea
24 parallel_emerge--;
25 /* update the main emerge reference data */
26 snprintf(ep, BUFSIZ, "completed %s", &buf[1][4]);
27 + t[0] = t[1];
28 continue;
29 }
30 }
31
32 diff --git a/tests/qlop/dotest b/tests/qlop/dotest
33 index ea4052d..ac30924 100755
34 --- a/tests/qlop/dotest
35 +++ b/tests/qlop/dotest
36 @@ -43,6 +43,9 @@ test 06 0 "qlop -l -f ${as}/sync.log -d 2005-01-01"
37 test 07 0 "qlop -l -f ${as}/sync.log -d '%d %Y %m|01 2005 01'"
38 test 08 0 "qlop -l -f ${as}/sync.log -d 1104898893"
39
40 +# deal with aborted merges
41 +test 09 0 "qlop -Htgv automake -f ${as}/aborts.log"
42 +
43 cleantmpdir
44
45 end