From 9e248007a16986a02fbfc269addb01de07ee427b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 25 May 2010 05:28:34 +0800 Subject: add FedoraPkgdb->getCritPath()... well seems it doesn't work :( --- FedoraClient.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'FedoraClient.php') 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']; + } } ?> -- cgit