summaryrefslogtreecommitdiffstats
path: root/refresh.php
diff options
context:
space:
mode:
Diffstat (limited to 'refresh.php')
-rw-r--r--refresh.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/refresh.php b/refresh.php
index 0224a76..37895cf 100644
--- a/refresh.php
+++ b/refresh.php
@@ -65,15 +65,20 @@ try {
$rpmtable = new TableRpm($db);
if ($_SERVER['argc']==1 || in_array('repo', $_SERVER['argv'])) {
+ $crit = array('id' => '>0');
+
if (in_array('empty', $_SERVER['argv'])) {
- $crit = array('stamp' => null);
+ $crit['stamp'] = null;
} else if (in_array('old', $_SERVER['argv'])) {
- $crit = array();
+ // none
} else {
- $crit = array('active' => 1);
+ $crit['active'] = 1;
}
Parser::readRpm($rpmtable, new TableRpmRepo($db), $crit);
+
+ $crit['id'] = '<0';
+ Parser::readProvides(new TablePackagist($db), new TableRpmRepo($db), $crit);
}
// -------------------------------------------------------------------