diff options
Diffstat (limited to 'backend/bundlers/cd-head.php')
-rw-r--r-- | backend/bundlers/cd-head.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/bundlers/cd-head.php b/backend/bundlers/cd-head.php index 2e96bba..385b261 100644 --- a/backend/bundlers/cd-head.php +++ b/backend/bundlers/cd-head.php @@ -1,8 +1,8 @@ <?php $profile=new sql_gentoo_profile($opts['profile']); -$headers=$profile->get_headers(); -if (strpos($headers['chost'], 'x86_64') === false) - $minimaliso=CACHE.'/cd/install-x86-minimal-20090623.iso'; -else - $minimaliso=CACHE.'/cd/install-amd64-minimal-20090625.iso'; +$r=query('SELECT * FROM `cache` WHERE `type`="cd" AND `key`="'.$profile->get_arch().'"'); +if ($r->rowCount() == 0) + throw_exception('No CD in cache for arch '.$profile->get_arch()); +$entry=new sql_cache_entry($r->fetch(PDO::FETCH_ASSOC)); +$minimaliso=CACHE."/$entry->file"; ?> |