pyrus/Pyrus — Issue #94: Package Name not same when package is created
Author: harikt
Created: 2012-02-19 08:44:45+00:00
State: open

The package name in xml is `Aura.Autoload` , but the package created is `Aura.0.0beta2.tgz` , which misses the second value after the dot . Though the output says its creating `Aura.Autoload-1.0.0.beta2.tgz` , see it misses `Autoload-1`

hari@hari-Vostro1510:/media/Linux/auraphp/system/package/Aura.Autoload$ pyrus package
Using PEAR installation found at /media/Linux/pyrus
Creating Aura.Autoload-1.0.0beta2.tgz
done
hari@hari-Vostro1510:/media/Linux/auraphp/system/package/Aura.Autoload$ ls
Aura.0.0beta2.tgz composer.json config docs LICENSE meta package.ini package.xml README.md scripts src src.php tests

The `package.xml` file is

Aura.Autoload
pear.php.net

The Aura Autoload package provides a PSR-0 compliant SPL autoloader implementation for PHP. It also matches the proposed SplClassLoader interface.

The Aura Autoload package provides a PSR-0 compliant SPL autoloader implementation for PHP. It also matches the proposed SplClassLoader interface.

Paul M Jones

hismailid@gmail.com
yes

2012-02-19
08:34:32

1.0.0beta2
1.0.0beta2

alpha
alpha

PHP
-

5.4

1.4

`package.xml` is created via Onion as I feel its an easy way https://github.com/c9s/Onion/

`package.ini` of onion is

[package]
name = Aura.Autoload
desc = The Aura Autoload package provides a PSR-0 compliant SPL autoloader implementation for PHP. It also matches the proposed SplClassLoader interface.
version = 1.0.0beta2
channel = pear.php.net
author = Paul M Jones

[require]
php = 5.4
pearinstaller = 1.4

[roles]
docs = doc

Create the package.xml

$ onion build

Checking directory structure...
* doc/ directory not found.
Configuring package.ini
Reading config file: package.ini
Configuring dependencies...
Writing package.xml...
Building contents section...
Building dependencies section...
Building phprelease section...
package.xml is generated. you can now build your PEAR package with:

PEAR:

$ pear -q package

Pyrus:

$ pyrus.phar package
Done.