[Pomp-commits] r1001 - www

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jul 25 15:27:35 CEST 2014


Author: kingaa
Date: 2014-07-25 15:27:34 +0200 (Fri, 25 Jul 2014)
New Revision: 1001

Modified:
   www/index.php
Log:
- fix CRAN version code to keep up with changes in CRAN's page

Modified: www/index.php
===================================================================
--- www/index.php	2014-07-15 13:23:46 UTC (rev 1000)
+++ www/index.php	2014-07-25 13:27:34 UTC (rev 1001)
@@ -7,7 +7,7 @@
 $scm = "http://r-forge.r-project.org/scm/viewvc.php/?root=pomp";
 $cranpage = "http://cran.at.r-project.org/web/packages/pomp/";
 $crancontents = file_get_contents($cranpage);
-preg_match("/<tr><td>Version:<\/td>\\n<td>(.+?)<\/td>/",$crancontents,$matches);
+preg_match("/<tr>\\n*<td>Version:<\/td>\\n*<td>(.+?)<\/td>/",$crancontents,$matches);
 $cranversion = $matches[1];
 $rforgepage = file_get_contents($rforgepkgs);
 preg_match_all("/Rev\.: <b>(.+?)<\/b>/",$rforgepage,&$matches);



More information about the pomp-commits mailing list