diff options
Diffstat (limited to 'class/TableRpmRepo.php')
-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); } |