diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-07-27 18:39:58 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-07-27 18:39:58 +0200 |
commit | a30604293878c9cf4794c00d289442f9e0a20311 (patch) | |
tree | 46e7f32280a0e089e5ff1f4efb2189b8890782b2 /class | |
parent | a725ecce477cf3630160f779504a7bfa9d94c9ce (diff) |
fix distro order in list
Diffstat (limited to 'class')
-rw-r--r-- | class/TableRpmRepo.php | 8 |
1 files changed, 6 insertions, 2 deletions
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); } |