[Pkg-octave-commit] rev 177 - trunk/www

Rafael Laboissiere pkg-octave-devel@lists.alioth.debian.org
Tue, 29 Mar 2005 18:10:53 +0000


Author: rafael
Date: 2005-03-29 18:10:53 +0000 (Tue, 29 Mar 2005)
New Revision: 177

Modified:
   trunk/www/index.html.in
Log:
Link to the correct SVN repository for the octave<n.m> versioned packages


Modified: trunk/www/index.html.in
===================================================================
--- trunk/www/index.html.in	2005-03-29 17:45:47 UTC (rev 176)
+++ trunk/www/index.html.in	2005-03-29 18:10:53 UTC (rev 177)
@@ -97,7 +97,8 @@
 <dl><dt></dt><dd>
     <table class="pkg">
 <:
-for my $pkg (@packages) { _:>
+for my $pkg (@packages) { 
+  my $pkg_svn = ($pkg =~ /(.*)\d\.\d$/) ? $1 : $pkg; _:>
       <tr>
         <td><:=$pkg:></td>
         <td>
@@ -132,8 +133,7 @@
           </a>
         </td>
         <td>
-          <a
-            href="http://svn.debian.org/wsvn/pkg-octave/trunk/packages/<:=$pkg:>/debian/?rev=0&amp;sc=0"
+          <a href="http://svn.debian.org/wsvn/pkg-octave/trunk/packages/<:=$pkg_svn:>/debian/?rev=0&amp;sc=0"
             title="Debian files in the Subversion repository">
             <img src="icons/svn.png" class="icon" alt="[svn]"/>
           </a>