diff options
author | 2018-03-26 21:06:19 +0200 | |
---|---|---|
committer | 2018-03-26 21:06:19 +0200 | |
commit | e8c0e327e7e1ec83a63c2c7a6b44567773ec7d94 (patch) | |
tree | 9d4ae9fbe2c4e06aa9f4d1671a1bd5d65f000421 /qlist.c | |
parent | colors: add support for color=color mappings (diff) | |
download | portage-utils-e8c0e327e7e1ec83a63c2c7a6b44567773ec7d94.tar.gz portage-utils-e8c0e327e7e1ec83a63c2c7a6b44567773ec7d94.tar.bz2 portage-utils-e8c0e327e7e1ec83a63c2c7a6b44567773ec7d94.zip |
qlist_cb: exclude /usr/src/debug by default too
This is an somewhat alternative take to the patch by
Niklas Haas <bgo@nand.wakku.to>.
Also exclude /usr/src/debug by default, because it contains a lot of
clutter.
Bug: https://bugs.gentoo.org/646310
Diffstat (limited to 'qlist.c')
-rw-r--r-- | qlist.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -335,8 +335,9 @@ qlist_cb(q_vdb_pkg_ctx *pkg_ctx, void *priv) continue; if (!state->show_dbg) { - if (!strncmp(e->name, "/usr/lib/debug", 14) && - (e->name[14] == '/' || e->name[14] == '\0')) + if ((strncmp(e->name, "/usr/lib/debug", 14) == 0 + || strncmp(e->name, "/usr/src/debug", 14) == 0) + && (e->name[14] == '/' || e->name[14] == '\0')) continue; } |