Skip to content

Commit

Permalink
added support for <deps> and <dep> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tvvcox committed Dec 16, 2001
1 parent 13dbb15 commit a919c54
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pear/PEAR/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit a919c54

Please sign in to comment.