[tor-commits] [gettor/master] New format for links. It follows RFC 882, so it can be read with ConfigParser

ilv at torproject.org ilv at torproject.org
Tue Sep 22 23:39:10 UTC 2015


commit cdaa4018c17b5ffee26ab8928a2803dce1ee3b2e
Author: ilv <ilv at users.noreply.github.com>
Date:   Fri Jun 6 13:04:16 2014 -0400

    New format for links. It follows RFC 882, so it can be read with ConfigParser
---
 src/providers/dropbox.links |   11 +++++++----
 src/providers/gdrive.links  |   11 +++++++----
 src/providers/mirrors.links |   11 +++++++----
 3 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/src/providers/dropbox.links b/src/providers/dropbox.links
index 53d4a04..6790349 100644
--- a/src/providers/dropbox.links
+++ b/src/providers/dropbox.links
@@ -1,5 +1,8 @@
-Dropbox
+[provider]
+name: Dropbox
 
-linux en https://foo.bar https://foo.bar.asc 111-222-333-444
-linux es https://bar.baz https://bar.baz.asc 555-666-777-888
-linux en https://baz.foo https://baz.foo.asc 999-111-222-333
+[linux]
+en: https://foo.bar https://foo.bar.asc 111-222-333-444,
+    https://baz.foo https://baz.foo.asc 999-111-222-333
+    
+es: https://bar.baz https://bar.baz.asc 555-666-777-888
diff --git a/src/providers/gdrive.links b/src/providers/gdrive.links
index 570c8e2..d221863 100644
--- a/src/providers/gdrive.links
+++ b/src/providers/gdrive.links
@@ -1,5 +1,8 @@
-Google Drive
+[provider]
+name: Google Drive
 
-linux en https://foo.bar https://foo.bar.asc 111-222-333-444
-linux es https://bar.baz https://bar.baz.asc 555-666-777-888
-linux en https://baz.foo https://baz.foo.asc 999-111-222-333
+[linux]
+en: https://foo.bar https://foo.bar.asc 111-222-333-444,
+    https://baz.foo https://baz.foo.asc 999-111-222-333
+    
+es: https://bar.baz https://bar.baz.asc 555-666-777-888
diff --git a/src/providers/mirrors.links b/src/providers/mirrors.links
index 0eb5b10..553de9d 100644
--- a/src/providers/mirrors.links
+++ b/src/providers/mirrors.links
@@ -1,5 +1,8 @@
-Official Mirrors
+[provider]
+name: Official mirrors
 
-linux en https://foo.bar https://foo.bar.asc 111-222-333-444
-linux es https://bar.baz https://bar.baz.asc 555-666-777-888
-linux en https://baz.foo https://baz.foo.asc 999-111-222-333
+[linux]
+en: https://foo.bar https://foo.bar.asc 111-222-333-444,
+    https://baz.foo https://baz.foo.asc 999-111-222-333
+    
+es: https://bar.baz https://bar.baz.asc 555-666-777-888





More information about the tor-commits mailing list