package/opkg: show curl error

This commit is contained in:
jjm2473 2022-11-28 16:06:06 +08:00
parent bb2cbb12b2
commit 5899d50829
2 changed files with 6 additions and 3 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=opkg
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_FLAGS:=essential
PKG_SOURCE_PROTO:=git

View File

@ -20,7 +20,7 @@
char *signature_ca_path;
--- a/libopkg/opkg_download.c 2021-06-14 05:27:37.000000000 +0800
+++ b/libopkg/opkg_download.c 2022-06-20 20:33:40.769112117 +0800
@@ -146,8 +146,38 @@
@@ -146,8 +146,41 @@
conf->no_proxy);
setenv("no_proxy", conf->no_proxy, 1);
}
@ -28,11 +28,14 @@
- {
+ if (conf->use_curl) {
+ int res;
+ const char *argv[11];
+ const char *argv[14];
+ int i = 0;
+
+ argv[i++] = "curl";
+ argv[i++] = "-s";
+ argv[i++] = "--fail";
+ argv[i++] = "--show-error";
+ argv[i++] = "-L";
+ if (conf->no_check_certificate) {
+ argv[i++] = "-k";
+ }