diff options
Diffstat (limited to 'FedoraClient.php')
-rw-r--r-- | FedoraClient.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/FedoraClient.php b/FedoraClient.php index bd91056..516f54b 100644 --- a/FedoraClient.php +++ b/FedoraClient.php @@ -164,5 +164,18 @@ class FedoraPkgdb extends FedoraClient { } return false; } + + function getCritPath($refresh=false) { + $url="lists/critpath"; + $rep = ($refresh ? false : $this->cache->get($url,__CLASS__)); + if ($rep) { + $this->logDebug(2,__CLASS__."::".__FUNCTION__." get from cache"); + } else { + $rep =$this->sendRequest($url); + $this->cache->save($rep,$url,__CLASS__); + $this->logDebug(2,__CLASS__."::".__FUNCTION__." save to cache"); + } + return $rep['pkgs']; + } } ?> |