diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-05-25 05:28:34 +0800 |
---|---|---|
committer | trasher <trasher@x-tnd.be> | 2010-05-29 16:44:57 +0800 |
commit | 9e248007a16986a02fbfc269addb01de07ee427b (patch) | |
tree | f5ace133c94721ec0fd665cbd0f9a2bbfb9b4dd1 /FedoraClient.php | |
parent | 886b1ca73cc20b7c266dd0a7da0e863b722c47df (diff) |
add FedoraPkgdb->getCritPath()... well seems it doesn't work :(
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']; + } } ?> |