summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-07-06 16:08:33 -0400
committerEudyptula <eitan@mosenkis.net>2009-07-06 16:08:33 -0400
commit8142c45b618eaa99f3380c2e0714e95d87e14ee2 (patch)
treeec1461d218b966307dd0239dbf362888ed600b55 /setup.php
parentAdd javascript-based searching to package adding stage (diff)
downloadingenue-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-xsetup.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup.php b/setup.php
index 0862c09..ad3fd2b 100755
--- a/setup.php
+++ b/setup.php
@@ -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 {