[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem] 03/20: Add reproducible build patch



This is an automated email from the git hooks/post-receive script.

atagar pushed a commit to branch maint
in repository stem.

commit 8086dadf9a2388cde08f19849076956e47d30514
Author: juga <juga@xxxxxxxxxx>
AuthorDate: Tue May 30 08:41:28 2023 +0000

    Add reproducible build patch
    
    Apply patch from https://salsa.debian.org/debian/python-stem/-/commit/46e214c62b08493086729d780e1e7840b8392bb8.
    
    Description: Make the build reproducible
    Author: Chris Lamb <lamby@xxxxxxxxxx>
    Last-Update: 2020-06-23
---
 stem/directory.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/stem/directory.py b/stem/directory.py
index 8139a935..3a3644dc 100644
--- a/stem/directory.py
+++ b/stem/directory.py
@@ -372,7 +372,9 @@ class Fallback(Directory):
     self.header = OrderedDict(header) if header else OrderedDict()
 
   @staticmethod
-  def from_cache(path = FALLBACK_CACHE_PATH):
+  def from_cache(path = None):
+    if path is None:
+        path = FALLBACK_CACHE_PATH
     conf = stem.util.conf.Config()
     conf.load(path)
     headers = OrderedDict([(k.split('.', 1)[1], conf.get(k)) for k in conf.keys() if k.startswith('header.')])

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits