In case we do find the http mirror at full doc url path, Consider the file to fetch relatively to it
modified libpkg/fetch.c
@@ -48,7 +48,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -75,6 +75,7 @@ gethttpmirrors(struct pkg_repo *repo, const char *url) {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -461,7 +462,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -472,7 +473,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -541,6 +542,18 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -551,7 +564,6 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -580,9 +592,9 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -595,7 +607,8 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -446,6 +446,7 @@ struct pkg_option {
|
|
|
|
|
|
| + | |
|
|
|
|
|