pkgdir=$dir; echo "done\n"; echo 'Loading data from '.$conf['pkgdir_root'].'/'.$dir.'/Packages...'; $profile->read_Packages(); $profile->read_pkgsets(); echo "done\n"; } foreach (explode("\n", trim(file_get_contents(CACHE.'/stage3/map'))) as $line) { list($profile, $file)=explode(' ', $line); if (!is_numeric($profile)) continue; $profile=new sql_gentoo_profile($profile); $profile->stage3=$file; $profile->write(); echo "Loading $profile->pkgdir stage3 data from $file..."; $profile->read_stage3(); echo "done\n"; } ?>