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

[tor-commits] [webwml/master] Always show deb-src entry on debian page



commit 29adba25b34fa662c3231331d31efeeb1117bf45
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date:   Wed Feb 11 18:43:19 2015 +0100

    Always show deb-src entry on debian page
---
 docs/en/debian.wml |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/docs/en/debian.wml b/docs/en/debian.wml
index a167cd1..7e1fa2f 100644
--- a/docs/en/debian.wml
+++ b/docs/en/debian.wml
@@ -122,13 +122,11 @@ function update() {
             txt += sources[keys[i]];
             target = keys[i];
         } else {
-            txt += "deb";
             if (package.slice(-7, -1) == 'source') {
-                txt += '-src';
                 package = package.split(' ')[0];
-                source_install = true
+                source_install = true;
             }
-            txt += " http://deb.torproject.org/torproject.org";;
+            txt += "http://deb.torproject.org/torproject.org";;
             txt += " ";
             if (version != 'stable') {
                 txt += package;
@@ -140,15 +138,14 @@ function update() {
             txt += " main";
             need_signed = true;
             target = keys[i];
+            txt = "deb " + txt + "\ndeb-src " + txt;
         }
         txt += "\n";
     }
     replaceText(src, txt);
-    //document.getElementById('signed').style.display = need_signed ? 'block' : 'none';
     document.getElementById('regular-install').style.display = source_install ? 'none' : 'block';
     document.getElementById('source-install').style.display = source_install ? 'block' : 'none';
     document.getElementById('source-install2').style.display = source_install ? 'block' : 'none';
-    //replaceText(document.getElementById('apt-target'), (keys && keys.length && target != distrib && target != distrib + '-security') ? ' -t ' + target : '');
     replaceText(document.getElementById('apt-package'), package);
     document.getElementById('apt-source').style.display = (keys && keys.length) ? 'block' : 'none';
     document.getElementById('apt-get').style.display = keys ? 'block' : 'none';



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