commit:     e8c0e327e7e1ec83a63c2c7a6b44567773ec7d94
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 26 19:06:19 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Mar 26 19:06:19 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=e8c0e327

qlist_cb: exclude /usr/src/debug by default too

This is an somewhat alternative take to the patch by
Niklas Haas <bgo <AT> nand.wakku.to>.

Also exclude /usr/src/debug by default, because it contains a lot of
clutter.

Bug: https://bugs.gentoo.org/646310

 qlist.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/qlist.c b/qlist.c
index cda4ca7..1f8757c 100644
--- a/qlist.c
+++ b/qlist.c
@@ -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;
                }
 

Reply via email to