Skip to content

Commit ddcad14

Browse files
author
Marcus Sorensen
committed
Summary: centos63/package.sh, slightly better version parsing
Description: current package.sh fails if user hasn't downloaded all maven poms prior to running package.sh. Now we match for something that vaguely resembles a cloudstack version. Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1360889840 -0700
1 parent ca5c6d5 commit ddcad14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packaging/centos63/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RPMDIR=$CWD/../../dist/rpmbuild
2121

2222

2323

24-
VERSION=`(cd ../../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep -v '^\['`
24+
VERSION=`(cd ../../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep '^[0-9]\.'`
2525
if echo $VERSION | grep SNAPSHOT ; then
2626
REALVER=`echo $VERSION | cut -d '-' -f 1`
2727
DEFVER="-D_ver $REALVER"

0 commit comments

Comments
 (0)