diff options
author | bapt <bapt@FreeBSD.org> | 2017-02-25 20:28:48 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2017-02-25 20:28:48 +0800 |
commit | 5e5f552ef783c868c3e2424e6fb290787b2f65ea (patch) | |
tree | 7600a75ee804ccfad6b68b936538e8ce52f2c3d5 /ports-mgmt/pkg | |
parent | 056f89eca8ea5f39f030025fac1b49e336ff4955 (diff) | |
download | freebsd-ports-gnome-5e5f552ef783c868c3e2424e6fb290787b2f65ea.tar.gz freebsd-ports-gnome-5e5f552ef783c868c3e2424e6fb290787b2f65ea.tar.zst freebsd-ports-gnome-5e5f552ef783c868c3e2424e6fb290787b2f65ea.zip |
Allow per repo environment variable to be set for
every kind of repositories
Reported by: kib
Tested by: kib
Diffstat (limited to 'ports-mgmt/pkg')
-rw-r--r-- | ports-mgmt/pkg/Makefile | 1 | ||||
-rw-r--r-- | ports-mgmt/pkg/files/patch-repo-env | 14 |
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); |