1 |
commit: e8c0e327e7e1ec83a63c2c7a6b44567773ec7d94 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 26 19:06:19 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 26 19:06:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=e8c0e327 |
7 |
|
8 |
qlist_cb: exclude /usr/src/debug by default too |
9 |
|
10 |
This is an somewhat alternative take to the patch by |
11 |
Niklas Haas <bgo <AT> nand.wakku.to>. |
12 |
|
13 |
Also exclude /usr/src/debug by default, because it contains a lot of |
14 |
clutter. |
15 |
|
16 |
Bug: https://bugs.gentoo.org/646310 |
17 |
|
18 |
qlist.c | 5 +++-- |
19 |
1 file changed, 3 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/qlist.c b/qlist.c |
22 |
index cda4ca7..1f8757c 100644 |
23 |
--- a/qlist.c |
24 |
+++ b/qlist.c |
25 |
@@ -335,8 +335,9 @@ qlist_cb(q_vdb_pkg_ctx *pkg_ctx, void *priv) |
26 |
continue; |
27 |
|
28 |
if (!state->show_dbg) { |
29 |
- if (!strncmp(e->name, "/usr/lib/debug", 14) && |
30 |
- (e->name[14] == '/' || e->name[14] == '\0')) |
31 |
+ if ((strncmp(e->name, "/usr/lib/debug", 14) == 0 |
32 |
+ || strncmp(e->name, "/usr/src/debug", 14) == 0) |
33 |
+ && (e->name[14] == '/' || e->name[14] == '\0')) |
34 |
continue; |
35 |
} |