summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick 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)
commita3221cb6e21fcf5586f423ea05a25072844327c0 (patch)
treef228febb830164e9cc765476f705cb512b8bf99a /src
parent31eb612c37cb15a8c08af5e3637b4183356ac1f7 (diff)
opk: List missing control files
Diffstat (limited to 'src')
-rw-r--r--src/opk.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/opk.c b/src/opk.c
index db0445f..94d6c2b 100644
--- a/src/opk.c
+++ b/src/opk.c
@@ -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;
}