]> git.deb.at Git - deb/packages.git/commitdiff
Merge branch 'master' into debian-master
authorFrank Lichtenheld <frank@lichtenheld.de>
Mon, 21 Apr 2008 18:04:46 +0000 (20:04 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Mon, 21 Apr 2008 18:04:46 +0000 (20:04 +0200)
bin/extract_changelogs
templates/html/download.tmpl
templates/html/head.tmpl

index 7d6f3e4769bafb894f7469b1b5c26443db6b2c80..9a85a7dc51e8f41f6f28aead28fd549b1fa48381 100755 (executable)
@@ -40,13 +40,28 @@ for part in $parts; do
 done
 
 if [ "$successful" -eq 1 ]; then
-    find "${htmldir}/changelogs/" -name log -cmin +14440 \
+    find -H "${htmldir}/changelogs/" -name log -cmin +14440 \
      | while read logfile; do
        dir=$(dirname "$logfile")
        echo deleting $dir
        rm -r "$dir"
        rmdir --ignore-fail-on-non-empty $(dirname "$dir")
     done
+    cdir=$(pwd)
+    find -H "${htmldir}/changelogs/" -name current -not -xtype d \
+     | while read link; do
+       dir=$(dirname "$link")
+       echo repairing current link $link
+       rm -v "$link"
+       target=$(ls -t1 "$dir" | tail -n1)
+       if [ -n "$target" ]; then
+               cd $dir && ln -sv $target current
+               cd $cdir
+       else
+               rmdir -v $dir
+       fi
+    done
+
 else
     echo clean-up skipped because at least one of the extraction runs failed >&2
 fi
index 8cd30c5fbce5681a862d4bcb5de47de6aab0b269..c524423d7bee245729a8ff48bf0174e681f21c03 100644 (file)
 <p>[% g('If you are running %s, it is strongly suggested to use a package manager like <a href="%s">aptitude</a> or <a href="%s">synaptic</a> to download and install packages, instead of doing so manually via this website.',
        organisation, make_url('aptitude','','arch',''), make_url('synaptic','','arch','')) %]</p>
 <p>[% g('You should be able to use any of the listed mirrors by adding a line to your <kbd>/etc/apt/sources.list</kbd> like this:') %]</p>
-[% IF archive != "security" %]
+[% IF archive == "volatile" %]
 <pre>
-deb http://<em>[% mirrors.$archive.europa.0 %]</em> [% suite %] main [% section IF section != main_section %]
+deb http://<em>[% mirrors.$archive.europa.0 %]</em> [% suite.replace('-','/') %] main [% section IF section != main_section %]
 </pre>
 <p>[% g('Replacing <em>%s</em> with the mirror in question.', mirrors.$archive.europa.0) %]
-[% ELSE %]
+[% ELSIF archive == "security" %]
 <pre>
 deb [% 'http://' _ security_mirror_url %] [% suite _ security_suite_suffix %] main [% section IF section != main_section %]
 </pre>
+[% ELSE %]
+<pre>
+deb http://<em>[% mirrors.$archive.europa.0 %]</em> [% suite %] main [% section IF section != main_section %]
+</pre>
+<p>[% g('Replacing <em>%s</em> with the mirror in question.', mirrors.$archive.europa.0) %]
 [%- END %]
 [% IF suite == "experimental" %]
 <h2>[% g('Experimental package') %]</h2>
index 9aed6a27c138e6fa93118c48180cdc56bc7e847a..9526e226a469d9e5bab81fd3903d435f48b88ffb 100644 (file)
@@ -29,7 +29,7 @@
 
    <div id="logo">
   <!-- very Debian specific use of the logo stuff -->
-  <a href="[% logo.url %]"><img src="[% logo.src %]" alt="" /></a>
+  <a href="[% logo.url %]"><img src="[% logo.src %]" alt=""></a>
   <a href="[% logo.url %]"><img src="/Pics/debian-small.png" alt="[% logo.alt %]" width="90" height="31"></a>
 </div> <!-- end logo -->