Date: Sat, 25 Feb 2017 12:28:49 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434798 - in head/ports-mgmt/pkg: . files Message-ID: <201702251228.v1PCSn5k033058@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702251228.v1PCSn5k033058>