summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'update_gentoo_profiles.php')
-rwxr-xr-xupdate_gentoo_profiles.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/update_gentoo_profiles.php b/update_gentoo_profiles.php
index e9f3ead..3f3cb3f 100755
--- a/update_gentoo_profiles.php
+++ b/update_gentoo_profiles.php
@@ -3,13 +3,12 @@
require_once(dirname(__FILE__).'/shared/include/includes.php'); // USE __DIR__ in 5.3.0
require_once(SHARED.'/config.php');
require_once(SHARED.'/include/dbinit.php');
-$pdo=&$S['pdo'];
$profiles=array();
-$r=$pdo->query('SELECT * FROM `gentoo_profiles`'.(isset($argv[1])?' WHERE `name` LIKE "%'.$argv[1].'%" OR `pkgdir` LIKE "%'.$argv[1].'%"':''));
+$r=query('SELECT * FROM `gentoo_profiles`'.(isset($argv[1])?' WHERE `name` LIKE "%'.$argv[1].'%" OR `pkgdir` LIKE "%'.$argv[1].'%"':''));
while ($p=$r->fetch(PDO::FETCH_ASSOC)) {
$profiles[$p['id']]=new sql_gentoo_profile($p);
$profile=&$profiles[$p['id']];
- echo "Updating from {$conf['pkgdir_root']}/$profile->pkgdir/Packages...\n";
+ echo "Updating from {$S['conf']['pkgdir_root']}/$profile->pkgdir/Packages...\n";
list($new, $updated, $deleted, $total)=$profile->read_Packages(true, true);
echo "Packages: $new new, $updated updated, $deleted deleted, $total total.\n";
echo 'Updating package sets...';