mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
don't want "-" in package names
This commit is contained in:
parent
f512ec4331
commit
95d19651f3
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class PEAR_Packager extends PEAR_Common
|
||||||
$pkgfile = basename($pkgfile);
|
$pkgfile = basename($pkgfile);
|
||||||
$pkgver = $pkginfo['package'] . '-' . $pkginfo['version'];
|
$pkgver = $pkginfo['package'] . '-' . $pkginfo['version'];
|
||||||
// don't want strange characters
|
// don't want strange characters
|
||||||
$pkgver = ereg_replace ('[^a-zA-Z0-9._-]', '_', $pkgver);
|
$pkgver = ereg_replace ('[^a-zA-Z0-9._]', '_', $pkgver);
|
||||||
$this->tmpdir = $pwd . DIRECTORY_SEPARATOR . $pkgver;
|
$this->tmpdir = $pwd . DIRECTORY_SEPARATOR . $pkgver;
|
||||||
if (file_exists($this->tmpdir)) {
|
if (file_exists($this->tmpdir)) {
|
||||||
return $this->raiseError('Tmpdir: ' . $this->tmpdir .' already exists',
|
return $this->raiseError('Tmpdir: ' . $this->tmpdir .' already exists',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue