diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-28 21:58:49 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-28 21:58:49 (EDT) |
commit | a3221cb6e21fcf5586f423ea05a25072844327c0 (patch) | |
tree | f228febb830164e9cc765476f705cb512b8bf99a /src | |
parent | 31eb612c37cb15a8c08af5e3637b4183356ac1f7 (diff) |
opk: List missing control files
Diffstat (limited to 'src')
-rw-r--r-- | src/opk.c | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -193,10 +193,11 @@ _opkg_opk_opk_check_name(const char *member_name, static int _opkg_opk_opk_read_control(struct opkg_opk_opk *opk) { - struct opkg_opk_ustar_member *member; - char *buffer; - size_t size; - int ret_read; + struct opkg_opk_ustar_member *member; + char *buffer; + size_t size; + int ret_read; + struct _opkg_opk_opk_seek_name *seek_name; if (opk->print_control_head == NULL) { /* No control files requested. */ @@ -238,8 +239,14 @@ _opkg_opk_opk_read_control(struct opkg_opk_opk *opk) } opk->previously_printed = 1; } + + /* Check for files not found. */ if (opk->print_control_head != NULL) { - fputs(_("Error: Failed to find control file\n"), stderr); + for (seek_name = opk->print_control_head; seek_name != NULL; + seek_name = seek_name->next) { + fprintf(stderr, _("Error: Failed to find control file " + "\"%s\"\n"), seek_name->name); + } _opkg_opk_opk_free_inner(opk); return OPKG_OPK_ERROR; } |