Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Got another one for you, Josh...
I tried using the
rpm:package-bin
task and got this error:According to the man doc for the version of rpmbuild I'm using (5.0.0, Mac OS X Snow Leopard), the syntax for the
buildroot
option is--buildroot DIRECTORY
, not--buildroot=DIRECTORY
.I've been told (by colleagues more knowledgeable than I) that there are unfortunate behavioral inconsistencies between various versions of RPM - notably 4.9 vs. 5.0. However, they all seem to share the same option syntax.
So, my question is: Does the existing
RpmHelper.buildPackage
code work for you, and if so, on what platform/RPM version?If it does work for you, then it may be necessary to add an
rpmVersion
setting to the plugin and adjust therpmbuild
args to accomodate the syntax differences between versions. Alternately, you could just mandate in the documentation that the plugin only works with specific version(s) of RPM.If the existing code doesn't work for you, either, pull my patch and see if that fixes it. I also added some debug logging to help diagnose errors with the RPM packaging.