aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2017-02-25 12:28:48 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2017-02-25 12:28:48 +0000
commitf646936a1dd255f0c55de380e09075b07fb165dc (patch)
tree7600a75ee804ccfad6b68b936538e8ce52f2c3d5 /ports-mgmt
parentb82f7b3f5b5fac853012cd415bdcfb15f2969974 (diff)
downloadports-f646936a1dd255f0c55de380e09075b07fb165dc.tar.gz
ports-f646936a1dd255f0c55de380e09075b07fb165dc.zip
Notes
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/pkg/Makefile1
-rw-r--r--ports-mgmt/pkg/files/patch-repo-env14
2 files changed, 15 insertions, 0 deletions
diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile
index 018f8684a104..4213419acbb7 100644
--- a/ports-mgmt/pkg/Makefile
+++ b/ports-mgmt/pkg/Makefile
@@ -2,6 +2,7 @@
PORTNAME= pkg
DISTVERSION= 1.10.0
+PORTREVISION= 1
_PKG_VERSION= ${DISTVERSION}
CATEGORIES= ports-mgmt
MASTER_SITES= \
diff --git a/ports-mgmt/pkg/files/patch-repo-env b/ports-mgmt/pkg/files/patch-repo-env
new file mode 100644
index 000000000000..9e00945dfcb1
--- /dev/null
+++ b/ports-mgmt/pkg/files/patch-repo-env
@@ -0,0 +1,14 @@
+diff --git libpkg/fetch.c libpkg/fetch.c
+index 035842b7..fd520ed5 100644
+--- libpkg/fetch.c
++++ libpkg/fetch.c
+@@ -515,7 +515,9 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
+
+ url += strlen(URL_SCHEME_PREFIX);
+ pkg_url_scheme = true;
++ }
+
++ if (repo != NULL) {
+ LL_FOREACH(repo->env, kv) {
+ kvtmp = xcalloc(1, sizeof(*kvtmp));
+ kvtmp->key = xstrdup(kv->key);