diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-04-28 18:01:43 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-04-28 18:01:43 +0200 |
commit | baa5e20fa9d84daa6f12c1cb42c01b4c292092c2 (patch) | |
tree | 4c9773e99fa56312ed5d88a82d6b9e21d6ef09f8 | |
parent | libq/{vdb,cache}: unify sorted and unsorted traversal (diff) | |
download | portage-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.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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; |