svn commit: r434798 - in head/ports-mgmt/pkg: . files
Baptiste Daroussin
bapt at FreeBSD.org
Sat Feb 25 12:28:50 UTC 2017
Author: bapt
Date: Sat Feb 25 12:28:48 2017
New Revision: 434798
URL: https://svnweb.freebsd.org/changeset/ports/434798
Log:
Allow per repo environment variable to be set for
every kind of repositories
Reported by: kib
Tested by: kib
Added:
head/ports-mgmt/pkg/files/patch-repo-env (contents, props changed)
Modified:
head/ports-mgmt/pkg/Makefile
Modified: head/ports-mgmt/pkg/Makefile
==============================================================================
--- head/ports-mgmt/pkg/Makefile Sat Feb 25 11:34:53 2017 (r434797)
+++ head/ports-mgmt/pkg/Makefile Sat Feb 25 12:28:48 2017 (r434798)
@@ -2,6 +2,7 @@
PORTNAME= pkg
DISTVERSION= 1.10.0
+PORTREVISION= 1
_PKG_VERSION= ${DISTVERSION}
CATEGORIES= ports-mgmt
MASTER_SITES= \
Added: head/ports-mgmt/pkg/files/patch-repo-env
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkg/files/patch-repo-env Sat Feb 25 12:28:48 2017 (r434798)
@@ -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);
More information about the svn-ports-head
mailing list