1 |
commit: 8f2ad078dfc9b9645ce5dd92a689a802e6c35aa6 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 2 11:15:25 2021 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 2 11:15:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=8f2ad078 |
7 |
|
8 |
qdepends: report which ebuild had dep-parsing errors |
9 |
|
10 |
Bug: https://bugs.gentoo.org/787602 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
qdepends.c | 7 ++++++- |
14 |
1 file changed, 6 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/qdepends.c b/qdepends.c |
17 |
index 9e2ea0b..959825b 100644 |
18 |
--- a/qdepends.c |
19 |
+++ b/qdepends.c |
20 |
@@ -166,8 +166,10 @@ qdepends_results_cb(tree_pkg_ctx *pkg_ctx, void *priv) |
21 |
if (depstr == NULL) |
22 |
continue; |
23 |
dep_tree = dep_grow_tree(depstr); |
24 |
- if (dep_tree == NULL) |
25 |
+ if (dep_tree == NULL) { |
26 |
+ warn("failed to parse depstring from %s\n", atom_to_string(datom)); |
27 |
continue; |
28 |
+ } |
29 |
|
30 |
if (state->qmode & QMODE_TREE && verbose) { |
31 |
/* pull in flags in use if possible */ |
32 |
@@ -185,6 +187,9 @@ qdepends_results_cb(tree_pkg_ctx *pkg_ctx, void *priv) |
33 |
dep_node *dep_vdb = dep_grow_tree(depstr); |
34 |
if (dep_vdb != NULL) |
35 |
dep_flatten_tree(dep_vdb, state->deps); |
36 |
+ else |
37 |
+ warn("failed to parse VDB depstring from %s\n", |
38 |
+ atom_to_string(datom)); |
39 |
} |
40 |
tree_close_pkg(vpkg); |
41 |
} |