<?php$profiles=array();foreach(get_pkgdirs()as$dir){echo'Creating profile for '.$conf['pkgdir_root'].'/'.$dir.'...';$profiles[]=newsql_gentoo_profile();$profile=&$profiles[count($profiles)-1];$profile->pkgdir=$dir;echo"done\n";echo'Loading data from '.$conf['pkgdir_root'].'/'.$dir.'/Packages...';$profile->read_Packages();$profile->read_pkgsets();echo"done\n";}?>