$this->cdata = '';
switch ($name) {
case 'dir':
+ if ($this->in_changelog) {
+ break;
+ }
if ($attribs['name'] != '/') {
$this->dir_names[] = $attribs['name'];
}
}
break;
case 'replace':
- $this->filelist[$this->current_path]['replacements'][] = $attribs;
+ if (!$this->in_changelog) {
+ $this->filelist[$this->current_path]['replacements'][] = $attribs;
+ }
break;
case 'libfile':
- $this->lib_atts = $attribs;
- $this->lib_atts['role'] = 'extsrc';
+ if (!$this->in_changelog) {
+ $this->lib_atts = $attribs;
+ $this->lib_atts['role'] = 'extsrc';
+ }
break;
case 'maintainers':
$this->pkginfo['maintainers'] = array();
case 'release':
if ($this->in_changelog) {
$this->pkginfo['changelog'][$this->c_i] = array();
- $this->current_release =& $this->pkginfo['changelog'][$this->c_i];
+ $this->current_release = &$this->pkginfo['changelog'][$this->c_i];
+ } else {
+ $this->current_release = &$this->pkginfo;
}
break;
case 'deps':
}
break;
case 'dir':
+ if ($this->in_changelog) {
+ break;
+ }
array_pop($this->dir_names);
break;
case 'file':
}
break;
case 'libfile':
+ if ($this->in_changelog) {
+ break;
+ }
$path = '';
if (!empty($this->dir_names)) {
foreach ($this->dir_names as $dir) {
unset($this->lib_name);
break;
case 'libname':
+ if ($this->in_changelog) {
+ break;
+ }
$this->lib_name = $data;
break;
case 'maintainer':