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

[tor-commits] [ooni-probe/master] Fix bug in deleting of old resources



commit a129553dd4922e96004f8f73ec2d2b85f0891fba
Author: Arturo Filastò <arturo@xxxxxxxxxxx>
Date:   Tue Feb 21 14:53:13 2017 +0000

    Fix bug in deleting of old resources
---
 ooni/resources.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ooni/resources.py b/ooni/resources.py
index 1830d422..69e74c58 100644
--- a/ooni/resources.py
+++ b/ooni/resources.py
@@ -174,4 +174,5 @@ def check_for_update(country_code=None):
 
     for resource in to_delete:
         log.msg("Deleting old resources")
-        resources_dir.child(resource["path"]).remove()
+        pre_path, filename = resource["path"].split("/")
+        resources_dir.child(pre_path).child(filename).remove()



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits