diff options
author | Eudyptula <eitan@mosenkis.net> | 2009-08-13 17:35:58 -0400 |
---|---|---|
committer | Eudyptula <eitan@mosenkis.net> | 2009-08-13 17:35:58 -0400 |
commit | 3d5c48d6d0c249d5a51318d3524c2d40e8bf1df9 (patch) | |
tree | b4f5d2c673aadbc786eb54c7f4dc32dba8dcdf46 /frontend | |
parent | Various improvements to HTML forms classes; Updated login to use form object;... (diff) | |
download | ingenue-3d5c48d6d0c249d5a51318d3524c2d40e8bf1df9.tar.gz ingenue-3d5c48d6d0c249d5a51318d3524c2d40e8bf1df9.tar.bz2 ingenue-3d5c48d6d0c249d5a51318d3524c2d40e8bf1df9.zip |
Wrote a script for automatically keeping cache files (stage3, install ISO, etc.) up to date by ftp, updated frontend and backend to reflect storing stage3 and iso filenames in the 'cache' table instead of 'gentoo_profiles'
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/modules/gentoo/step3.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/modules/gentoo/step3.php b/frontend/modules/gentoo/step3.php index 6af5b2e..83b101c 100644 --- a/frontend/modules/gentoo/step3.php +++ b/frontend/modules/gentoo/step3.php @@ -21,8 +21,8 @@ if (strlen($pkgsets=$this->get_opt('pkgsets'))) { $this->checkbox_array('pkgset-'.$pkgset->id, 'pkgset-'.$pkgset->id, $pkgset->name, $pkgs); } } -if (in_array('pruneinit', $opts)) { - $r=query('SELECT * FROM `gentoo_baseinit` WHERE `profile`='.$profile->id.' ORDER BY `name`, `runlevel`'); +if (in_array('prune_init', $opts)) { + $r=query('SELECT * FROM `gentoo_baseinit` WHERE `key`="'.$profile->get_identifier().'" ORDER BY `name`, `runlevel`'); $scripts=array(); while ($script=$r->fetch(PDO::FETCH_ASSOC)) { $script=new sql_gentoo_baseinit($script); @@ -30,8 +30,8 @@ if (in_array('pruneinit', $opts)) { } $this->checkbox_array('pruneinit', 'pruneinit', 'Remove the following init scripts', $scripts); } -if ($this->get_opt('basesystem') == 'manual') { - $r=query('SELECT * FROM `gentoo_basepkgs` WHERE `profile`='.$profile->id.' ORDER BY `pkg`'); +if ($this->get_opt('basesystem') == 'user_prune') { + $r=query('SELECT * FROM `gentoo_basepkgs` WHERE `key`="'.$profile->get_identifier().'" ORDER BY `pkg`'); $pkgs=array(); while ($pkg=$r->fetch(PDO::FETCH_ASSOC)) { $pkg=$pkg['pkg']; |