summaryrefslogtreecommitdiff
blob: c37059ffc3d0a61bfcb2cbb3387f844d307a343e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$profiles=array();
foreach (get_pkgdirs() as $dir) {
	echo 'Creating profile for '.$S['conf']['pkgdir_root'].'/'.$dir.'...';
	$profiles[]=new sql_gentoo_profile();
	$profile=&$profiles[count($profiles)-1];
	$profile->pkgdir=$dir;
	echo "done\n";
	echo 'Loading data from '.$S['conf']['pkgdir_root'].'/'.$dir.'/Packages...';
	$profile->read_Packages();
	$profile->read_pkgsets();
	echo "done\n";
}
$r=query('SELECT * FROM `cache` WHERE `type`="stage3"');
while ($row=$r->fetch(PDO::FETCH_ASSOC)) {
	$entry=new sql_cache_entry($row);
	echo "Reading contents of stage3 file $entry->file...";
	read_stage3($entry);
	echo "done\n";
}
?>