1 |
commit: baa5e20fa9d84daa6f12c1cb42c01b4c292092c2 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 28 16:01:43 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 28 16:01:43 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=baa5e20f |
7 |
|
8 |
libq/vdb: make q_vdb_filter_pkg work on Linux |
9 |
|
10 |
skip the entry type checks, just look at the name |
11 |
|
12 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
13 |
|
14 |
libq/vdb.c | 7 ------- |
15 |
1 file changed, 7 deletions(-) |
16 |
|
17 |
diff --git a/libq/vdb.c b/libq/vdb.c |
18 |
index 9c53b5b..34edfd2 100644 |
19 |
--- a/libq/vdb.c |
20 |
+++ b/libq/vdb.c |
21 |
@@ -204,13 +204,6 @@ q_vdb_close_cat(q_vdb_cat_ctx *cat_ctx) |
22 |
int |
23 |
q_vdb_filter_pkg(const struct dirent *de) |
24 |
{ |
25 |
-#ifdef DT_UNKNOWN |
26 |
- if (de->d_type != DT_UNKNOWN && |
27 |
- de->d_type != DT_DIR && |
28 |
- de->d_type != DT_LNK) |
29 |
- return 0; |
30 |
-#endif |
31 |
- |
32 |
if (de->d_name[0] == '.' || de->d_name[0] == '-') |
33 |
return 0; |