Skip to content

Commit 3066643

Browse files
committed
Fixed RPM build for release candidates.
1 parent f5edd56 commit 3066643

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gulpfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,11 @@ function release_rpm(arch, done) {
603603
// The buildRpm does not generate the folder correctly, manually
604604
createDirIfNotExists(RELEASE_DIR);
605605

606+
var regex = /-/g;
607+
606608
var options = {
607609
name: pkg.name,
608-
version: pkg.version,
610+
version: pkg.version.replace(regex, '_'), // RPM does not like release candidate versions
609611
buildArch: getLinuxPackageArch('rpm', arch),
610612
vendor: pkg.author,
611613
summary: pkg.description,

0 commit comments

Comments
 (0)