From 374feac70ef82d0c7324c2309b56493f8396f7c4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 28 Jul 2014 09:29:07 +0200 Subject: add script to test pkgist --- testpkgist.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 testpkgist.php (limited to 'testpkgist.php') diff --git a/testpkgist.php b/testpkgist.php new file mode 100644 index 0000000..ee9e418 --- /dev/null +++ b/testpkgist.php @@ -0,0 +1,17 @@ +request(array('ORDER'=>'rpmname')) as $rec) { + if ($rep = $pk->getPackage($rec['pkgname'])) { + printf("%-40s %-12s %-12s %s\n", $rep['name'], $rep['stable'], $rep['unstable'], $rep['state']); + } +} + +var_dump($pk->getPackage('unkwnown/dontexists')); \ No newline at end of file -- cgit