summaryrefslogtreecommitdiffstats
path: root/FedoraClient.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-05-24 23:28:34 +0200
committerRemi Collet <fedora@famillecollet.com>2010-05-24 23:28:34 +0200
commit2ec0f85de586973a65e88194216810c9f2ad335e (patch)
treec3df214c47d339d49b03768cffa42140ffe0f43a /FedoraClient.php
parent423564807cbf345a16840acf31ef4bad3a527092 (diff)
add FedoraPkgdb->getCritPath()... well seems it doesn't work :(
Diffstat (limited to 'FedoraClient.php')
-rw-r--r--FedoraClient.php13
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'];
+ }
}
?>