commit: 15550ad9c486e23894773de505a12af4f7eba887 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Wed Jul 26 12:00:54 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Wed Jul 26 12:00:54 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=15550ad9
pass PATH variable to calls of FETCHCOMMAND Resolves: https://github.com/pkgcore/pkgdev/issues/145 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> src/pkgcore/operations/format.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pkgcore/operations/format.py b/src/pkgcore/operations/format.py index 22b975b46..00746c4a8 100644 --- a/src/pkgcore/operations/format.py +++ b/src/pkgcore/operations/format.py @@ -40,7 +40,11 @@ class fetch_base: resumecmd = domain.settings.get("RESUMECOMMAND", fetchcmd) attempts = int(domain.settings.get("FETCH_ATTEMPTS", 10)) self.fetcher = fetch_custom.fetcher( - self.distdir, fetchcmd, resumecmd, attempts=attempts + self.distdir, + fetchcmd, + resumecmd, + attempts=attempts, + PATH=os.environ["PATH"], ) def fetch_all(self, observer):
