From a3221cb6e21fcf5586f423ea05a25072844327c0 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 28 Apr 2023 21:58:49 -0400 Subject: opk: List missing control files --- (limited to 'src') 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; } -- cgit v0.9.1