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

[tor-commits] [gettor/master] Minor changes



commit 1e8645959172ce050e5890ecb5e0505ac72494d1
Author: ilv <ilv@xxxxxxxxxxxxxxxxxxxxxxxx>
Date:   Thu Aug 27 15:19:40 2015 -0300

    Minor changes
---
 upload/bundles2drive.py |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/upload/bundles2drive.py b/upload/bundles2drive.py
index 9612382..1cf6a17 100644
--- a/upload/bundles2drive.py
+++ b/upload/bundles2drive.py
@@ -44,15 +44,15 @@ def valid_format(file, osys):
     """
     if(osys == 'windows'):
         m = re.search(
-            'torbrowser-install-\d\.\d\.\d_\w\w(-\w\w)?\.exe',
+            'torbrowser-install-\d\.\d\.?\d?_\w\w(-\w\w)?\.exe',
             file)
     elif(osys == 'linux'):
         m = re.search(
-            'tor-browser-linux\d\d-\d\.\d\.\d_(\w\w)(-\w\w)?\.tar\.xz',
+            'tor-browser-linux\d\d-\d\.\d\.?\d?_(\w\w)(-\w\w)?\.tar\.xz',
             file)
     elif(osys == 'osx'):
         m = re.search(
-            'TorBrowser-\d\.\d\.\d-osx\d\d_(\w\w)(-\w\w)?\.dmg',
+            'TorBrowser-\d\.\d\.?\d?-osx\d\d_(\w\w)(-\w\w)?\.dmg',
             file)
     if m:
         return True
@@ -73,7 +73,7 @@ def get_bundle_info(file, osys):
     """
     if(osys == 'windows'):
         m = re.search(
-            'torbrowser-install-\d\.\d\.\d_(\w\w)(-\w\w)?\.exe',
+            'torbrowser-install-\d\.\d\.?\d?_(\w\w)(-\w\w)?\.exe',
             file)
         if m:
             lc = m.group(1)
@@ -82,7 +82,7 @@ def get_bundle_info(file, osys):
             raise ValueError("Invalid bundle format %s" % file)
     elif(osys == 'linux'):
         m = re.search(
-            'tor-browser-linux(\d\d)-\d\.\d\.\d_(\w\w)(-\w\w)?\.tar\.xz',
+            'tor-browser-linux(\d\d)-\d\.\d\.?\d?_(\w\w)(-\w\w)?\.tar\.xz',
             file)
         if m:
             arch = m.group(1)
@@ -92,7 +92,7 @@ def get_bundle_info(file, osys):
             raise ValueError("Invalid bundle format %s" % file)
     elif(osys == 'osx'):
         m = re.search(
-            'TorBrowser-\d\.\d\.\d-osx(\d\d)_(\w\w)(-\w\w)?\.dmg',
+            'TorBrowser-\d\.\d\.?\d?-osx(\d\d)_(\w\w)(-\w\w)?\.dmg',
             file)
         if m:
             os = 'osx'
@@ -351,10 +351,10 @@ if __name__ == '__main__':
             elif p3.match(file):
                 osys, arch, lc = get_bundle_info(file, 'osx')
 
-            link = "Package (%s-bit): %s\nASC signature (%s-bit): %s\n"\
-                   "Package SHA256 checksum (%s-bit): %s\n" %\
-                   (arch, link_file, arch, link_asc,
-                    arch, sha_file)
+            link = "Tor Browser %s-bit:\n%s$Tor Browser's signature %s-bit:"\
+                    "\n%s$SHA256 checksum of Tor Browser %s-bit (advanced):"\
+                    "\n%s$" %\
+                   (arch, link_file, arch, link_asc, arch, sha_file)
 
             # note that you should only upload bundles for supported locales
             core.add_link('Drive', osys, lc, link)



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