diff options
author | 2021-05-02 13:15:25 +0200 | |
---|---|---|
committer | 2021-05-02 13:15:25 +0200 | |
commit | 8f2ad078dfc9b9645ce5dd92a689a802e6c35aa6 (patch) | |
tree | b82fff40b1be572321db8cd4172abdb6b5397732 /qdepends.c | |
parent | qdepends: fix return status when using multiple repos (diff) | |
download | portage-utils-8f2ad078dfc9b9645ce5dd92a689a802e6c35aa6.tar.gz portage-utils-8f2ad078dfc9b9645ce5dd92a689a802e6c35aa6.tar.bz2 portage-utils-8f2ad078dfc9b9645ce5dd92a689a802e6c35aa6.zip |
qdepends: report which ebuild had dep-parsing errors
Bug: https://bugs.gentoo.org/787602
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qdepends.c')
-rw-r--r-- | qdepends.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -166,8 +166,10 @@ qdepends_results_cb(tree_pkg_ctx *pkg_ctx, void *priv) if (depstr == NULL) continue; dep_tree = dep_grow_tree(depstr); - if (dep_tree == NULL) + if (dep_tree == NULL) { + warn("failed to parse depstring from %s\n", atom_to_string(datom)); continue; + } if (state->qmode & QMODE_TREE && verbose) { /* pull in flags in use if possible */ @@ -185,6 +187,9 @@ qdepends_results_cb(tree_pkg_ctx *pkg_ctx, void *priv) dep_node *dep_vdb = dep_grow_tree(depstr); if (dep_vdb != NULL) dep_flatten_tree(dep_vdb, state->deps); + else + warn("failed to parse VDB depstring from %s\n", + atom_to_string(datom)); } tree_close_pkg(vpkg); } |