diff options
author | Fabian Groffen <grobian@gentoo.org> | 2020-10-04 20:43:17 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2020-10-04 20:43:17 +0200 |
commit | e2cb3938176e97b6e41d1873838db35a017cf7d9 (patch) | |
tree | 0fb4f5ccb0e6b209470c37ddddba3e5aeb2f8ba3 /qlop.c | |
parent | qlop: treat either terminating or exiting or both as a termination of Portage (diff) | |
download | portage-utils-e2cb3938176e97b6e41d1873838db35a017cf7d9.tar.gz portage-utils-e2cb3938176e97b6e41d1873838db35a017cf7d9.tar.bz2 portage-utils-e2cb3938176e97b6e41d1873838db35a017cf7d9.zip |
qlop: fix fix for #731122, also make it work without packages specified
Bug: https://bugs.gentoo.org/745798
Bug: https://bugs.gentoo.org/731122
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qlop.c')
-rw-r--r-- | qlop.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1353,12 +1353,6 @@ static array_t *probe_proc(array_t *atoms) xarraydelete_ptr(ret_atoms, j); atom_implode(atomr); break; - } else { - /* bug #731122: match running packages without - * version */ - atomr->PV = NULL; - atomr->PVR = NULL; - atomr->PR_int = 0; } } atom_implode(atom); @@ -1369,7 +1363,14 @@ static array_t *probe_proc(array_t *atoms) /* ret_atoms is allocated on the stack, so copy into atoms which is * empty at this point */ array_for_each(ret_atoms, i, atom) + { + /* bug #731122: match running packages without version */ + atom->PV = NULL; + atom->PVR = NULL; + atom->PR_int = 0; + printf("proc: %s\n", atom_to_string(atom)); xarraypush_ptr(atoms, atom); + } xarrayfree_int(ret_atoms); |