diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-09-25 09:04:52 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-09-25 09:04:52 +0200 |
commit | 1390316a872c7c1ec24169e0d1f3922d93c3b42d (patch) | |
tree | e67b11349bb8e6a515b61a1ed0a662855e32ae26 | |
parent | 2c6a233a9981d8f2cc56b6e166d971f63359c519 (diff) |
Copy version string from package.xml although plugin versions should be derived from git tags
-rwxr-xr-x | bin/package2composer.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/package2composer.sh b/bin/package2composer.sh index aa9dffb50..c615a177f 100755 --- a/bin/package2composer.sh +++ b/bin/package2composer.sh @@ -39,6 +39,7 @@ $data = array( 'description' => trim(strval($package->description), '- ') ? trim(strval($package->description)) : trim(strval($package->summary)), 'homepage' => strval($package->uri), 'license' => 'GPLv3+', + 'version' => strval($package->version->release), 'authors' => array(), 'repositories' => array( array('type' => 'composer', 'url' => 'http://plugins.roundcube.net'), @@ -55,6 +56,9 @@ if ($package->license) { if ($package->lead) { foreach ($package->lead as $lead) { + if (strval($lead->active) == 'no') { + continue; + } $data['authors'][] = array( 'name' => strval($lead->name), 'email' => strval($lead->email), |