cvs: php4 /pear/PEAR Common.php

From: Date: Sun, 07 Apr 2002 15:49:24 +0000
Subject: cvs: php4 /pear/PEAR Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3104@lists.php.net to get a copy of this message
ssb Sun Apr 7 11:49:24 2002 EDT Modified files: /php4/pear/PEAR Common.php Log: * leave error reporting to the validator Index: php4/pear/PEAR/Common.php diff -u php4/pear/PEAR/Common.php:1.43 php4/pear/PEAR/Common.php:1.44 --- php4/pear/PEAR/Common.php:1.43 Sun Apr 7 06:38:01 2002 +++ php4/pear/PEAR/Common.php Sun Apr 7 11:49:23 2002 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.43 2002/04/07 10:38:01 ssb Exp $ +// $Id: Common.php,v 1.44 2002/04/07 15:49:23 ssb Exp $ require_once 'PEAR.php'; require_once 'Archive/Tar.php'; @@ -406,11 +406,7 @@ $this->current_maintainer['email'] = $data; break; case 'role': - if (!in_array($data, $this->maintainer_roles)) { - trigger_error("The maintainer role: '$data' is not valid", E_USER_WARNING); - } else { - $this->current_maintainer['role'] = $data; - } + $this->current_maintainer['role'] = $data; break; case 'version': $data = ereg_replace ('[^a-zA-Z0-9._\-]', '_', $data); @@ -435,9 +431,7 @@ } break; case 'state': - /* if (!in_array($data, $this->release_states)) { - trigger_error("The release state: '$data' is not valid", E_USER_WARNING); - } else*/if ($this->in_changelog) { + if ($this->in_changelog) { $this->current_release['release_state'] = $data; } else { $this->pkginfo['release_state'] = $data;

« previous php.pear.cvs (#3104) next »