-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1178 attempt at adding in rpm epochs #1179
Conversation
Yes, sounds good.
…--
Regards, Alexey
On Tue, Dec 11, 2018, 7:33 PM Ty Coghlan ***@***.*** wrote:
***@***.**** commented on this pull request.
------------------------------
In src/main/scala/com/typesafe/sbt/packager/rpm/RpmMetadata.scala
<#1179 (comment)>
:
> @@ -222,6 +223,9 @@ case class RpmSpec(meta: RpmMetadata,
sb append ("Version: %s\n" format meta.version)
sb append ("Release: %s\n" format meta.release)
sb append ("Summary: %s\n" format meta.summary)
+
+ if (meta.epoch > 0) sb append ("Epoch: %d\n" format meta.epoch)
I went back and forth on that. Doing this way also protests against
negative epochs, but I suppose I could do an exists or filter for the
negative check. Thoughts?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1179 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABEFStilRVseAMi1aVqadKZRDJ_3cvOIks5u36YvgaJpZM4ZMQ8O>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very solid change ❤️
Thanks @kardapoltsev for still being around and help reviewing 🤗
@@ -28,3 +28,5 @@ rpmRelease := "1" | |||
rpmVendor := "DemoVendor" | |||
|
|||
rpmLicense := Some("Apache-2.0") | |||
|
|||
rpmEpoch := 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity? This do you acutally run this test? I haven't used this for a very long time and I'm not sure if we should remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, I forgot that I committed this. I mucked around with the Vagrant file (e.g., changing chef to bento) and got something half running, but tbh you could probably remove it.
squashed and updated based on review comments |
Can someone poke the travis build? |
src/main/scala/com/typesafe/sbt/packager/validation/package.scala
Outdated
Show resolved
Hide resolved
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! ❤️
🥂 |
No description provided.