Skip to content
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

Generate a nicer changelog for the scratch task srpm. #22

Merged
merged 2 commits into from Feb 24, 2015

Conversation

ralphbean
Copy link
Contributor

This should fix #19.

@ralphbean
Copy link
Contributor Author

@voxik, does this look like it will do it for you?

@@ -96,8 +96,8 @@ def handle(self, package, upstream, version, rhbz):
cmd = [
'/usr/bin/rpmdev-bumpspec',
'--new', upstream,
'-c', '"Latest upstream, %s for #%s"' % (upstream, rhbz),
'-u', '"%s"' % self.userstring,
'-c', 'Update to %s (#%s)' % (upstream, rhbz.bug_id),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be #%d instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why, yes it should, my type-oriented friend.

(fwiw, the %s works.. but %d would be more explicit).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why, yes it should, my type-oriented friend.

In a dependently-typed language (Idris, Agda, Coq, etc.) you could detect that mismatch at compile time ;). Not in Haskell though. :P

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ralphbean If you want to see how that works (it's really neat): https://www.youtube.com/watch?v=fVBck2Zngjo

@voxik
Copy link
Contributor

voxik commented Feb 24, 2015

Looks good if I can parse the code correctly 👍

@pypingou
Copy link
Member

👍 for me as well

@ralphbean
Copy link
Contributor Author

Thanks both!

ralphbean added a commit that referenced this pull request Feb 24, 2015
Generate a nicer changelog for the scratch task srpm.
@ralphbean ralphbean merged commit 9e11005 into develop Feb 24, 2015
@ralphbean ralphbean deleted the feature/nicer-changelog branch February 24, 2015 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants