[tor-commits] [ooni-probe/master] Country codes should be casted to lowercase otherwise on case sensitive filesystems it will not match the correct file.

art at torproject.org art at torproject.org
Fri Oct 14 19:00:56 UTC 2016


commit 5aecb48681e10bc8a434afad26a9dd41f3dc7b00
Author: Arturo Filastò <arturo at filasto.net>
Date:   Thu Sep 22 16:02:46 2016 +0200

    Country codes should be casted to lowercase otherwise on case sensitive filesystems it will not match the correct file.
    
    This fixes the second bug related to #606
---
 ooni/deck/store.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ooni/deck/store.py b/ooni/deck/store.py
index 3e20e01..d88f5d5 100644
--- a/ooni/deck/store.py
+++ b/ooni/deck/store.py
@@ -35,6 +35,7 @@ class InputStore(object):
             countries.append(country_code)
 
         for cc in countries:
+            cc = cc.lower()
             in_file = self.resources.child("citizenlab-test-lists").child("{0}.csv".format(cc))
             if not in_file.exists():
                 yield check_for_update(country_code)





More information about the tor-commits mailing list