summaryrefslogtreecommitdiffstats
path: root/get.php
diff options
context:
space:
mode:
Diffstat (limited to 'get.php')
-rw-r--r--get.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/get.php b/get.php
index afcde43..e14845a 100644
--- a/get.php
+++ b/get.php
@@ -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");
}