Permalink
Browse files

Make sure we show the latest version as when outputting.

git-svn-id: http://svn.php.net/repository/pear/pearweb/trunk@309056 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
helgi committed Mar 9, 2011
1 parent 86babab commit 4e3f62ab43442833af3bc2dd400b7c86d7468552
Showing with 3 additions and 3 deletions.
  1. +3 −3 scripts/findOldPackageXml.php
@@ -6,10 +6,10 @@
}
$sql = '
- SELECT r.id, p.name, files.packagexml
+ SELECT r.id, r.version, p.name, files.packagexml
FROM packages p
LEFT JOIN (
- SELECT MAX(id) as id, version, package FROM releases GROUP BY package
+ SELECT MAX(id) as id, MAX(version) as version, package FROM releases GROUP BY package
) AS r ON p.id = r.package
JOIN files ON r.id = files.release
WHERE p.package_type = "pear"
@@ -19,7 +19,7 @@
$i = 0;
foreach ($data as $d) {
if (!preg_match('/<package[^>]+version\s*=\s*"2.0"/', $d['packagexml'])) {
- echo $d['name'] . "\n";
+ echo $d['name'] . ' (' . $d['version'] . ")\n";
$i++;
}
}

0 comments on commit 4e3f62a

Please sign in to comment.