aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-04-28 18:01:43 +0200
committerFabian Groffen <grobian@gentoo.org>2019-04-28 18:01:43 +0200
commitbaa5e20fa9d84daa6f12c1cb42c01b4c292092c2 (patch)
tree4c9773e99fa56312ed5d88a82d6b9e21d6ef09f8
parentlibq/{vdb,cache}: unify sorted and unsorted traversal (diff)
downloadportage-utils-baa5e20fa9d84daa6f12c1cb42c01b4c292092c2.tar.gz
portage-utils-baa5e20fa9d84daa6f12c1cb42c01b4c292092c2.tar.bz2
portage-utils-baa5e20fa9d84daa6f12c1cb42c01b4c292092c2.zip
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@gentoo.org>
-rw-r--r--libq/vdb.c7
1 files changed, 0 insertions, 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;