diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index 663124cae7d97..1b1a9261c7c3e 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -180,6 +180,14 @@ function _element_start($xp, $name, $attribs) $this->current_release =& $this->pkginfo['changelog'][$this->c_i]; } break; + case 'deps': + $this->pkginfo['release_deps'] = array(); + break; + case 'dep': + // dependencies array index + $this->d_i = (isset($this->d_i)) ? $this->d_i + 1 : 0; + $this->pkginfo['release_deps'][$this->d_i] = $attribs; + break; } } @@ -318,6 +326,11 @@ function _pkginfo_cdata($xp, $data) case 'sources': $this->lib_sources[] = trim($data); break; + case 'dep': + if ($data = trim($data)) { + $this->pkginfo['release_deps'][$this->d_i]['name'] = $data; + } + break; } }