Skip to content

Commit

Permalink
Fixed RPM build for release candidates. (#1666)
Browse files Browse the repository at this point in the history
Fixed RPM build for release candidates.
  • Loading branch information
mikeller committed Sep 16, 2019
2 parents f5edd56 + 3066643 commit b293859
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,11 @@ function release_rpm(arch, done) {
// The buildRpm does not generate the folder correctly, manually
createDirIfNotExists(RELEASE_DIR);

var regex = /-/g;

var options = {
name: pkg.name,
version: pkg.version,
version: pkg.version.replace(regex, '_'), // RPM does not like release candidate versions
buildArch: getLinuxPackageArch('rpm', arch),
vendor: pkg.author,
summary: pkg.description,
Expand Down

0 comments on commit b293859

Please sign in to comment.