<pre>
------ Package Descriptions ------
<?PHP

// Include the config
require_once('../include/config.inc.php');

$sql "SELECT package_p, category_f, ebuild_description, count(*) FROM package, ebuild WHERE package_f = package_p  AND `ebuild`._removed IS NULL GROUP BY package_p ORDER BY ebuild_version DESC, ebuild_revision DESC";
$results mysql_query($sql) or die(mysql_error());

$x 0;
while(
$row mysql_fetch_assoc($results)){
    
$package = new package($row['category_f'], $row['package_p']);
    
$package->update_desc($row['ebuild_description']);
    
    
$x++;
    
    if(
$x 1000 == intval($x/1000)) 
        echo 
"Updated $x Descriptions \n";
}

?>
</pre>