Always show deb-src entry on debian page
Sebastian Hahn

Sebastian Hahn commited on 2015-02-11 18:43:19
Zeige 1 geänderte Dateien mit 2 Einfügungen und 5 Löschungen.

... ...
@@ -122,11 +122,9 @@ 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 129
             txt += "http://deb.torproject.org/torproject.org";
132 130
             txt += " ";
... ...
@@ -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';
155 152