Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Turris
openwrt
Commits
f6c0227f
Verified
Commit
f6c0227f
authored
Jan 14, 2021
by
Jan Pavlinec
Browse files
opkg: fix curl patch
parent
6797c429
Changes
2
Hide whitespace changes
Inline
Side-by-side
package/system/opkg/Makefile
View file @
f6c0227f
...
...
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/version.mk
include
$(INCLUDE_DIR)/feeds.mk
PKG_NAME
:=
opkg
PKG_RELEASE
:=
9
PKG_RELEASE
:=
10
PKG_SOURCE_PROTO
:=
git
PKG_SOURCE_URL
:=
https://git.openwrt.org/project/opkg-lede.git
...
...
package/system/opkg/patches/110-curl-tmp.patch
View file @
f6c0227f
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -9
0,27 +90,19
@@
opkg_download(const char *src, const cha
const char *argv[
8
];
@@ -9
1,34 +91,20
@@
opkg_download(const char *src, const cha
const char *argv[
11
];
int i = 0;
- argv[i++] = "wget";
- argv[i++] = "-q";
- if (conf->no_check_certificate) {
- argv[i++] = "--no-check-certificate";
- }
- if (conf->http_timeout) {
- argv[i++] = "--timeout";
- argv[i++] = conf->http_timeout;
- }
- if (conf->http_proxy || conf->ftp_proxy) {
- argv[i++] = "-Y";
- argv[i++] = "on";
...
...
@@ -17,11 +24,12 @@
+ argv[i++] = "--compressed";
+ argv[i++] = "-f";
+ argv[i++] = "-o";
+
argv[i++] = tmp_file_location;
argv[i++] = src;
argv[i++] = NULL;
res = xsystem(argv);
if (res) {
- opkg_msg(ERROR,
- "Failed to download %s, wget returned %d.\n",
...
...
@@ -34,4 +42,4 @@
+ opkg_msg(ERROR, "Failed to download %s, curl returned %d.\n", src, res);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment