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

sebastian at torproject.org sebastian at torproject.org
Thu Feb 12 12:35:31 UTC 2015


commit 29adba25b34fa662c3231331d31efeeb1117bf45
Author: Sebastian Hahn <sebastian at torproject.org>
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';





More information about the tor-commits mailing list