Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
Enable tag inheritance in koji module
Browse files Browse the repository at this point in the history
  • Loading branch information
movitto committed Apr 22, 2014
1 parent 97f9f48 commit 7f695f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/polisher/koji.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def self.versions_for(name, &bl)
# koji xmlrpc call
builds =
koji_tags.collect do |tag|
client.call('listTagged', tag, nil, false, nil, false,
# tag event inherit prefix latest
client.call('listTagged', tag, nil, true, nil, false,
"#{package_prefix}#{name}")
end.flatten
versions = builds.collect { |b| b['version'] }
Expand Down
6 changes: 3 additions & 3 deletions spec/koji_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ module Polisher
end

it "uses xmlrpc client to retreive versions" do
expected = ['listTagged', described_class.koji_tag, nil, false,
expected = ['listTagged', described_class.koji_tag, nil, true,
nil, false, "rubygem-rails"]
@client.should_receive(:call).with(*expected).and_return([])
described_class.versions_for 'rails'
end

it "handles multiple koji tags" do
described_class.should_receive(:koji_tags).and_return(['tag1', 'tag2'])
expected1 = ['listTagged', 'tag1', nil, false,
expected1 = ['listTagged', 'tag1', nil, true,
nil, false, "rubygem-rails"]
expected2 = ['listTagged', 'tag2', nil, false,
expected2 = ['listTagged', 'tag2', nil, true,
nil, false, "rubygem-rails"]
@client.should_receive(:call).with(*expected1).and_return([])
@client.should_receive(:call).with(*expected2).and_return([])
Expand Down

0 comments on commit 7f695f2

Please sign in to comment.