commit:     baa5e20fa9d84daa6f12c1cb42c01b4c292092c2
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 28 16:01:43 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Apr 28 16:01:43 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=baa5e20f

libq/vdb: make q_vdb_filter_pkg work on Linux

skip the entry type checks, just look at the name

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 libq/vdb.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libq/vdb.c b/libq/vdb.c
index 9c53b5b..34edfd2 100644
--- a/libq/vdb.c
+++ b/libq/vdb.c
@@ -204,13 +204,6 @@ q_vdb_close_cat(q_vdb_cat_ctx *cat_ctx)
 int
 q_vdb_filter_pkg(const struct dirent *de)
 {
-#ifdef DT_UNKNOWN
-       if (de->d_type != DT_UNKNOWN &&
-           de->d_type != DT_DIR &&
-           de->d_type != DT_LNK)
-               return 0;
-#endif
-
        if (de->d_name[0] == '.' || de->d_name[0] == '-')
                return 0;
 

Reply via email to