From 2ec0f85de586973a65e88194216810c9f2ad335e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 24 May 2010 23:28:34 +0200 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