projects
/
pharext
/
pharext
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
support packages that have been pickle'd
[pharext/pharext]
/
src
/
pharext
/
SourceDir
/
Pecl.php
diff --git
a/src/pharext/SourceDir/Pecl.php
b/src/pharext/SourceDir/Pecl.php
index 39127f6a7f95035e599e136ef3d135362abe94ad..d21a0e0de313a5155a48bb88424ef377dea80769 100644
(file)
--- a/
src/pharext/SourceDir/Pecl.php
+++ b/
src/pharext/SourceDir/Pecl.php
@@
-33,10
+33,13
@@
class Pecl implements \IteratorAggregate, SourceDir
* @see \pharext\SourceDir::__construct()
*/
public function __construct(Command $cmd, $path) {
* @see \pharext\SourceDir::__construct()
*/
public function __construct(Command $cmd, $path) {
- if (!realpath("$path/package.xml")) {
+ if (realpath("$path/package2.xml")) {
+ $sxe = simplexml_load_file("$path/package2.xml");
+ } elseif (realpath("$path/package.xml")) {
+ $sxe = simplexml_load_file("$path/package.xml");
+ } else {
throw new \Exception("Missing package.xml in $path");
}
throw new \Exception("Missing package.xml in $path");
}
- $sxe = simplexml_load_file("$path/package.xml");
$sxe->registerXPathNamespace("pecl", $sxe->getDocNamespaces()[""]);
$args = $cmd->getArgs();
$sxe->registerXPathNamespace("pecl", $sxe->getDocNamespaces()[""]);
$args = $cmd->getArgs();