diff options
author | Eudyptula <eitan@mosenkis.net> | 2009-07-06 16:08:33 -0400 |
---|---|---|
committer | Eudyptula <eitan@mosenkis.net> | 2009-07-06 16:08:33 -0400 |
commit | 8142c45b618eaa99f3380c2e0714e95d87e14ee2 (patch) | |
tree | ec1461d218b966307dd0239dbf362888ed600b55 /setup.php | |
parent | Add javascript-based searching to package adding stage (diff) | |
download | ingenue-8142c45b618eaa99f3380c2e0714e95d87e14ee2.tar.gz ingenue-8142c45b618eaa99f3380c2e0714e95d87e14ee2.tar.bz2 ingenue-8142c45b618eaa99f3380c2e0714e95d87e14ee2.zip |
Stored all data from Packages files in the db to allow frontend/backend separation; created script to update db cache of available packages; renamed profiles -> gentoo_profiles for proper modularity
Diffstat (limited to 'setup.php')
-rwxr-xr-x | setup.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -27,9 +27,11 @@ foreach (get_declared_classes() as $class) { } foreach (get_pkgdirs() as $dir) { echo 'Creating profile for '.$conf['pkgdir_root'].'/'.$dir.'...'; - $profile=new sql_profile(); + $profile=new sql_gentoo_profile(); $profile->pkgdir=$dir; - $profile->write(); + echo "done\n"; + echo 'Loading data from '.$conf['pkgdir_root'].'/'.$dir.'/Packages...'; + $profile->read_Packages(); echo "done\n"; } do { |