diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-04-21 17:51:58 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-04-21 17:51:58 +0200 |
commit | 93d434191102e9b5eccdedb3828359ec7a67b207 (patch) | |
tree | 2048cc6ba6e050e841091c2cbd130f1f4cd9c098 /get.php | |
parent | 1be373d489817ff91e077c97ac91779ebc1c8e22 (diff) |
various rpms can provide the same packagist name
Diffstat (limited to 'get.php')
-rw-r--r-- | get.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -54,6 +54,12 @@ try { $result[$rec['pkgname']] = $rec['rpmname']; } break; + case 'packagist2': + $pkgist = new TablePackagist($db); + foreach($pkgist->request(array('ORDER'=>'rpmname')) as $rec) { + $result[$rec['rpmname']] = $rec['pkgname']; + } + break; default: die("Invalid arg"); } |