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

[tor-commits] [gettor/master] Modified scripts to add correct gitlab links to db



commit 8260a79d95fc20f0e2266b681e0052f3515c233f
Author: Cecylia Bocovich <cohosh@xxxxxxxxxxxxxx>
Date:   Fri Jan 10 17:55:16 2020 -0500

    Modified scripts to add correct gitlab links to db
---
 scripts/add_links_to_db | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/add_links_to_db b/scripts/add_links_to_db
index 114c729..eaf66d6 100755
--- a/scripts/add_links_to_db
+++ b/scripts/add_links_to_db
@@ -71,7 +71,7 @@ def main():
         sys.exit(1)
 
     providers = {
-        "gitlab": "https://gitlab.com/thetorproject/gettorbrowser/raw/torbrowser-releases/";,
+        "gitlab": "https://gitlab.com/thetorproject/torbrowser-arch/raw/master/";,
         "github": "https://github.com/torproject/torbrowser-releases/releases/download/torbrowser-release/";
     }
 
@@ -145,7 +145,8 @@ def main():
                     release_link = releases.get(k).replace("en-US", l)
                     c.execute(
                         "INSERT INTO links(link, platform, language, arch, version, provider, status, file)"
-                        "VALUES ('%s', '%s', '%s', '64', '%s', '%s', 'ACTIVE', '%s')" % (providers.get(p) + release_link, k, l, version, p, release_link))
+                        "VALUES ('%s', '%s', '%s', '64', '%s', '%s', 'ACTIVE', '%s')"
+                        % (providers.get(p).replace("arch", k) + release_link, k, l, version, p, release_link))
 
 
 if __name__ == "__main__":



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