From a30604293878c9cf4794c00d289442f9e0a20311 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 27 Jul 2014 18:39:58 +0200 Subject: fix distro order in list --- class/TableRpmRepo.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'class') diff --git a/class/TableRpmRepo.php b/class/TableRpmRepo.php index 17e29d2..1a30242 100644 --- a/class/TableRpmRepo.php +++ b/class/TableRpmRepo.php @@ -78,16 +78,20 @@ class TableRpmRepo extends CommonTable /** * Retrieve all the known repository * - * @param boolean $active true for only active repo (false for all) + * @param boolean $active true for only active repo (false for all) + * @param boolean $onlysrc true for only sources repo (false for all) * * @return hastable of id => hastable */ - function getAllRepo($active=true) + function getAllRepo($active=true, $onlysrc=true) { $crit = array("ORDER" => 'id'); if ($active) { $crit['active'] = 1; } + if ($onlysrc) { + $crit['id'] = '>0'; + } return $this->getArray($crit); } -- cgit