summaryrefslogtreecommitdiff
blob: 47cae9628fffa4582337e97c75d89fca0ee20dd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
$profiles=array();
foreach (get_pkgdirs() as $dir) {
	echo 'Creating profile for '.$conf['pkgdir_root'].'/'.$dir.'...';
	$profiles[]=new sql_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";
}
?>