bazelbuild / rules_pkg

Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
Apache License 2.0
221 stars 174 forks source link

Only inject pre and post scriptlets when provided #788

Closed kellyma2 closed 10 months ago

kellyma2 commented 10 months ago

Currently if the consumer doesn't provide a value for the pre or post scriplets we inject an empty scriptlet which has the effect of constructing an RPM that appears to have these scriplets (although they're empty). Instead, we likely want to not provide them at all in these cases.