diff options
| author | Hauke Mehrtens | 2021-05-02 20:46:02 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2021-06-13 21:27:37 +0000 |
| commit | 1bf042dd06751b693a8544d2317e5b969d666b69 (patch) | |
| tree | c8053e7875cbb2344c6d1ae8f157a88887028d1c | |
| parent | 5936c4f9660248284e8a9b040ea3153d3ea888de (diff) | |
| download | opkg-lede-1bf042dd06751b693a8544d2317e5b969d666b69.tar.gz | |
libopkg: pkg_hash: print unresolved dependencies
When a package is not installed because it has unresolved dependencies
normally we get only an error message like this:
* pkg_hash_fetch_best_installation_candidate: Packages for ltq-vdsl-app found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package ltq-vdsl-app.
Log in addition the following error message:
* pkg_hash_check_unresolved: cannot find dependency ltq-dsl-base for ltq-vdsl-app
Fixes: FS#3814
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | libopkg/pkg_hash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libopkg/pkg_hash.c b/libopkg/pkg_hash.c index a07a25e..c58703f 100644 --- a/libopkg/pkg_hash.c +++ b/libopkg/pkg_hash.c @@ -263,8 +263,10 @@ pkg_hash_check_unresolved(pkg_t *maybe) if (unresolved) { res = 1; tmp = unresolved; - while (*tmp) + while (*tmp) { + opkg_msg(ERROR, "cannot find dependency %s for %s\n", *tmp, maybe->name); free(*(tmp++)); + } free(unresolved); } pkg_vec_free(depends); |