You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2023/02/17 09:30:51 UTC

[buildstream] 01/01: Merge pull request #1826 from apache/tristan/downloadable-source

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 8889d753ed0904c9f817035a322e7c143e3cb756
Merge: 62aa8ffda 8e16de770
Author: Tristan Van Berkom <tr...@codethink.co.uk>
AuthorDate: Fri Feb 17 18:30:45 2023 +0900

    Merge pull request #1826 from apache/tristan/downloadable-source
    
    Stop passing URL opener across process boundaries

 src/buildstream/_stream.py                |  7 ----
 src/buildstream/downloadablefilesource.py | 61 ++++++++++++++++---------------
 2 files changed, 32 insertions(+), 36 deletions(-)

diff --cc src/buildstream/downloadablefilesource.py
index ce91f7c40,16f6604cd..e31033506
--- a/src/buildstream/downloadablefilesource.py
+++ b/src/buildstream/downloadablefilesource.py
@@@ -132,9 -133,8 +133,8 @@@ def _download_file(opener_creator, url
  class DownloadableFileSource(Source):
      # pylint: disable=attribute-defined-outside-init
  
 -    COMMON_CONFIG_KEYS = Source.COMMON_CONFIG_KEYS + ["url", "ref", "etag"]
 +    COMMON_CONFIG_KEYS = Source.COMMON_CONFIG_KEYS + ["url", "ref"]
  
-     __urlopener = None
      __default_mirror_file = None
  
      def configure(self, node):