diff options
| author | Tomas V.V.Cox <cox@php.net> | 2001-12-16 16:21:35 +0000 |
|---|---|---|
| committer | Tomas V.V.Cox <cox@php.net> | 2001-12-16 16:21:35 +0000 |
| commit | a919c54de1b32e3c9f73d642896663b913589f40 (patch) | |
| tree | c4bfa86193437d62ba0c6c3dc345a3bb6477f533 /pear | |
| parent | 13dbb1553cbb180c1f1a303bd64a415191d08094 (diff) | |
| download | php-git-a919c54de1b32e3c9f73d642896663b913589f40.tar.gz | |
added support for <deps> and <dep> tags
Diffstat (limited to 'pear')
| -rw-r--r-- | pear/PEAR/Common.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index 663124cae7..1b1a9261c7 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -180,6 +180,14 @@ class PEAR_Common extends PEAR $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 @@ class PEAR_Common extends PEAR case 'sources': $this->lib_sources[] = trim($data); break; + case 'dep': + if ($data = trim($data)) { + $this->pkginfo['release_deps'][$this->d_i]['name'] = $data; + } + break; } } |
