diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-08-01 11:01:26 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-08-01 11:01:26 +0200 |
commit | 524eafd21886717271be06d05bdfe92adce0b6e1 (patch) | |
tree | 4080445f98b7530ac4dd78501ec0c7652ba8beed /class/FedoraPkgdb.php | |
parent | de7b6100e3ef554797e86c92e0c3c13ead4dfe67 (diff) | |
parent | 06a6a4f777272421970bb827c898f6d36f1ab669 (diff) |
Merge http://github.com/trasher/rpmphp
Diffstat (limited to 'class/FedoraPkgdb.php')
-rw-r--r-- | class/FedoraPkgdb.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/class/FedoraPkgdb.php b/class/FedoraPkgdb.php index d170911..15ddf50 100644 --- a/class/FedoraPkgdb.php +++ b/class/FedoraPkgdb.php @@ -37,12 +37,12 @@ class FedoraPkgdb extends FedoraClient { - private $suburl; + private $_suburl; function __construct (array $options=array()) { parent::__construct('https://admin.fedoraproject.org/pkgdb/', $options); - $this->suburl = 'acls/name/'; + $this->_suburl = 'acls/name/'; $this->logDebug( 3, @@ -80,12 +80,12 @@ class FedoraPkgdb extends FedoraClient function getPackageURL($name) { - return $this->url.$this->suburl.$name; + return $this->url.$this->_suburl.$name; } function getPackageInfo($name, $refresh=false) { - $url=$this->suburl.urlencode($name); + $url=$this->_suburl.urlencode($name); $rep = ($refresh ? false : $this->cache->get($url, __CLASS__)); if ($rep) { $this->logDebug( @@ -108,12 +108,12 @@ class FedoraPkgdb extends FedoraClient ); return false; } - $this->logDebug(8,print_r($rep,true)); + $this->logDebug(8, print_r($rep, true)); $branches = array(); foreach ($rep['packageListings'] as $pack) { $branches[$pack['collection']['branchname']] = $pack; } - $this->logDebug(7,print_r($branches,true)); + $this->logDebug(7, print_r($branches, true)); return $branches; } |