fixed #534 for real (remove notice if state=stable doesn't exist, and use "none" for stable version number)

This commit is contained in:
Greg Beaver 2004-04-03 15:56:00 +00:00
parent 4493bbb809
commit ae73e40808

View file

@ -278,6 +278,9 @@ parameter.
if ($info['unstable']) { if ($info['unstable']) {
$unstable = '/(' . $info['unstable'] . $info['state'] . ')'; $unstable = '/(' . $info['unstable'] . $info['state'] . ')';
} }
if (!isset($info['stable']) || !$info['stable']) {
$info['stable'] = 'none';
}
$data['data'][$info['category']][] = array( $data['data'][$info['category']][] = array(
$name, $name,
$info['stable'] . $unstable, $info['stable'] . $unstable,
@ -287,7 +290,7 @@ parameter.
} }
if (!isset($data['data'])) { if (!isset($data['data'])) {
return $this->raiseError('no packages found'); return $this->raiseError('no packages found');
}; }
$this->ui->outputData($data, $command); $this->ui->outputData($data, $command);
return true; return true;
} }