diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-07-26 19:39:57 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-07-26 19:39:57 +0200 |
commit | 64fb7ac1ff4fffe6c29e8eaa38967acc454a18ae (patch) | |
tree | d8fe5e502031b277c5eb5ad594115db3f7c5c647 /refresh.php | |
parent | cdcd95d1b58672f097e20b0514338a960cf2cf80 (diff) |
add parser to retrieve packagist package name from binary repository
Diffstat (limited to 'refresh.php')
-rw-r--r-- | refresh.php | 11 |
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); } // ------------------------------------------------------------------- |