projects
/
project
/
opkg-lede.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d038e5b
)
libopkg: allow install package from https and ftps
master
author
Huangbin Zhan
<zhanhb88@gmail.com>
Wed, 9 Dec 2020 06:18:11 +0000
(14:18 +0800)
committer
Robert Marko
<robimarko@gmail.com>
Wed, 16 Oct 2024 09:13:16 +0000
(11:13 +0200)
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
Link:
https://github.com/openwrt/opkg-lede/pull/2
Signed-off-by: Robert Marko <robimarko@gmail.com>
libopkg/opkg_download.c
patch
|
blob
|
history
diff --git
a/libopkg/opkg_download.c
b/libopkg/opkg_download.c
index af91f12a429ff33994c6da37d55cee45bcef97af..fd4ef3ea7807b20adb9cac29977a5b4e9b2af100 100644
(file)
--- a/
libopkg/opkg_download.c
+++ b/
libopkg/opkg_download.c
@@
-321,8
+321,8
@@
int opkg_prepare_url_for_install(const char *url, char **namep)
pkg = pkg_new();
pkg = pkg_new();
- if (str_starts_with(url, "http://")
- || str_starts_with(url, "ftp://")) {
+ if (str_starts_with(url, "http://")
|| str_starts_with(url, "https://")
+ || str_starts_with(url, "ftp://")
|| str_starts_with(url, "ftps://")
) {
char *tmp_file;
char *file_basec = xstrdup(url);
char *file_base = basename(file_basec);
char *tmp_file;
char *file_basec = xstrdup(url);
char *file_base = basename(file_basec);