svn: /pear2/Pyrus/trunk/src/Pyrus/Channel/ Remotepackage.php
| From: | Brett Bieber | Date: | Thu, 19 Nov 2009 16:31:24 +0000 |
| Subject: | svn: /pear2/Pyrus/trunk/src/Pyrus/Channel/ Remotepackage.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9038@lists.php.net to get a copy of this message | ||
saltybeagle Thu, 19 Nov 2009 16:31:24 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291010
Log:
Add method for retrieving download URL
Changed paths:
U pear2/Pyrus/trunk/src/Pyrus/Channel/Remotepackage.php
Modified: pear2/Pyrus/trunk/src/Pyrus/Channel/Remotepackage.php
===================================================================
--- pear2/Pyrus/trunk/src/Pyrus/Channel/Remotepackage.php 2009-11-19 16:18:21 UTC (rev 291009)
+++ pear2/Pyrus/trunk/src/Pyrus/Channel/Remotepackage.php 2009-11-19 16:31:24 UTC (rev 291010)
@@ -292,8 +292,8 @@
$this->notes = $a['n'];
$this->versionSet = true;
}
-
- function download()
+
+ function getDownloadURL($ext = '')
{
if (!$this->versionSet) {
// this happens when doing a simple download outside of an install
@@ -315,7 +315,13 @@
break;
}
}
- $url = $this->remoteAbridgedInfo['g'];
+ return $this->remoteAbridgedInfo['g'] . $ext;
+ }
+
+ function download()
+ {
+
+ $url = $this->getDownloadURL();
$errs = new \pear2\MultiErrors;
$certdownloaded = false;