Browse code

Always show deb-src entry on debian page

Sebastian Hahn authored on 11/02/2015 18:43:19
Showing 1 changed files
... ...
@@ -122,13 +122,11 @@ function update() {
122 122
             txt += sources[keys[i]];
123 123
             target = keys[i];
124 124
         } else {
125
-            txt += "deb";
126 125
             if (package.slice(-7, -1) == 'source') {
127
-                txt += '-src';
128 126
                 package = package.split(' ')[0];
129
-                source_install = true
127
+                source_install = true;
130 128
             }
131
-            txt += " http://deb.torproject.org/torproject.org";
129
+            txt += "http://deb.torproject.org/torproject.org";
132 130
             txt += " ";
133 131
             if (version != 'stable') {
134 132
                 txt += package;
... ...
@@ -140,15 +138,14 @@ function update() {
140 138
             txt += " main";
141 139
             need_signed = true;
142 140
             target = keys[i];
141
+            txt = "deb " + txt + "\ndeb-src " + txt;
143 142
         }
144 143
         txt += "\n";
145 144
     }
146 145
     replaceText(src, txt);
147
-    //document.getElementById('signed').style.display = need_signed ? 'block' : 'none';
148 146
     document.getElementById('regular-install').style.display = source_install ? 'none' : 'block';
149 147
     document.getElementById('source-install').style.display = source_install ? 'block' : 'none';
150 148
     document.getElementById('source-install2').style.display = source_install ? 'block' : 'none';
151
-    //replaceText(document.getElementById('apt-target'), (keys && keys.length && target != distrib && target != distrib + '-security') ? ' -t ' + target : '');
152 149
     replaceText(document.getElementById('apt-package'), package);
153 150
     document.getElementById('apt-source').style.display = (keys && keys.length) ? 'block' : 'none';
154 151
     document.getElementById('apt-get').style.display = keys ? 'block' : 'none';