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

Make rpm dist a renderable property #2313

Merged
merged 1 commit into from Jul 12, 2016
Merged

Conversation

anish
Copy link
Contributor

@anish anish commented Jul 10, 2016

  • Also changes default dist from el5 to el6
  • Optional rpm build properties are now built up as a dict before being rendered
  • Changed tests to cover default value of 'dist'

@mention-bot
Copy link

@anish, thanks for your PR! By analyzing the annotation information on this pull request, we identified @ashcrow, @tardyp and @djmitche to be potential reviewers

@codecov-io
Copy link

codecov-io commented Jul 10, 2016

Current coverage is 85.84%

Merging #2313 into master will increase coverage by <.01%

@@             master      #2313   diff @@
==========================================
  Files           293        293          
  Lines         30530      30537     +7   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          26206      26213     +7   
  Misses         4324       4324          
  Partials          0          0          

Sunburst

Powered by Codecov. Last updated by 00a48de...eaa3d38

@@ -88,6 +94,9 @@ def __init__(self,
'stdio', logobserver.LineConsumerLogObserver(self.logConsumer))

def start(self):

self.rpmbuild = ('%s --define "dist %s"' % (self.rpmbuild, self.dist))
Copy link
Member

Choose a reason for hiding this comment

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

It would be nicer to create a new local variable for this, rather than modifying in place. Step instances aren't re-used, but absent that knowledge this looks like every run of the step would add an additional --define dist argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@djmitche That was easy enough to fix, but this pattern repeats itself in the code already. Would it make sense to covert it to a dict instead and then generate command based on that ?

@anish anish force-pushed the rpm_renderable branch 3 times, most recently from ad7563d to b46b56f Compare July 11, 2016 07:03
@djmitche
Copy link
Member

Good point, yes, I think that would be great if you don't mind.

@anish
Copy link
Contributor Author

anish commented Jul 11, 2016

Already done :)
On Jul 11, 2016 6:14 AM, "Dustin J. Mitchell" notifications@github.com
wrote:

Good point, yes, I think that would be great if you don't mind.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2313 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAF_Nh0zK4h7U5k5vOQDwjgpQNqfd41dks5qUkGxgaJpZM4JIv09
.

@djmitche
Copy link
Member

Hah, I didn't even look at the changes -- yes, looks nice!

@tardyp tardyp merged commit a624266 into buildbot:master Jul 12, 2016
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

5 participants