right_publish 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/right_publish/repos/apt.rb +3 -3
- data/lib/right_publish/repos/yum.rb +2 -2
- data/right_publish.gemspec +1 -1
- data/spec/repos/apt_spec.rb +8 -8
- data/spec/repos/yum_spec.rb +1 -9
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
@@ -17,8 +17,8 @@ module RightPublish
|
|
17
17
|
SRC_EXTENSION = 'dsc'
|
18
18
|
BIN_ALL_ARCH = 'all'
|
19
19
|
|
20
|
-
@@supported_archs = [ '
|
21
|
-
@@all_archs = [ '
|
20
|
+
@@supported_archs = [ 'amd64' ]
|
21
|
+
@@all_archs = [ 'amd64', BIN_ALL_ARCH ]
|
22
22
|
|
23
23
|
def add(file_or_dir, target)
|
24
24
|
repo_updates = {}
|
@@ -157,7 +157,7 @@ module RightPublish
|
|
157
157
|
repo_config[:dists].each { |dist| f.puts(dist_conf(dist)) }
|
158
158
|
end
|
159
159
|
|
160
|
-
# We preseed this file with values that would be generated if this were
|
160
|
+
# We preseed this file with values that would be generated if this were
|
161
161
|
# a precise distro. If we start this repo on trusty then it'll write 5.3.x
|
162
162
|
# for the bdb version which is not backwards compatible. The precise versions
|
163
163
|
# are forward compatible to trusty at least though.
|
@@ -21,7 +21,7 @@ module RightPublish
|
|
21
21
|
SRC_ALL_ARCH = 'src'
|
22
22
|
SRC_ALL_PATH = 'SRPMS'
|
23
23
|
|
24
|
-
ARCHITECTURES = [ '
|
24
|
+
ARCHITECTURES = [ 'x86_64' ]
|
25
25
|
PKG_TYPES = [ ARCHITECTURES, BIN_ALL_ARCH, SRC_ALL_ARCH ]
|
26
26
|
|
27
27
|
def add(file_or_dir, target)
|
@@ -124,7 +124,7 @@ module RightPublish
|
|
124
124
|
end
|
125
125
|
dists = repo_config[:dists]
|
126
126
|
end
|
127
|
-
|
127
|
+
|
128
128
|
dists.each_pair do |dist,dist_vers|
|
129
129
|
dist_vers.each do |ver|
|
130
130
|
# Source RPMS stored in SRPMS architecture, noarchs go to all architectures
|
data/right_publish.gemspec
CHANGED
data/spec/repos/apt_spec.rb
CHANGED
@@ -160,13 +160,13 @@ describe RightPublish::AptRepo do
|
|
160
160
|
@repo.publish(deb_files, @target_distribution_str)
|
161
161
|
end
|
162
162
|
|
163
|
-
it "installs a directory mixed of amd64 and i386 debs to a dist" do
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
end
|
163
|
+
# it "installs a directory mixed of amd64 and i386 debs to a dist" do
|
164
|
+
# deb_files = ['foo_1_amd64.deb', 'bar_1_i386.deb']
|
165
|
+
# build_expectations(deb_files,@target_distribution_str)
|
166
|
+
# flexmock(File) { |obj| obj.should_receive(:directory?).and_return(true) }
|
167
|
+
# flexmock(Dir) { |obj| obj.should_receive(:glob).and_return(deb_files) }
|
168
|
+
# @repo.publish('some_dir/', @target_distribution_str)
|
169
|
+
# end
|
170
170
|
|
171
171
|
it "fails with no files in a dir" do
|
172
172
|
flexmock(File) { |obj| obj.should_receive(:directory?).and_return(true) }
|
@@ -182,7 +182,7 @@ describe RightPublish::AptRepo do
|
|
182
182
|
end
|
183
183
|
|
184
184
|
it "fails with unknown architectures" do
|
185
|
-
deb_files = ['foo.ppc.deb', 'bar.
|
185
|
+
deb_files = ['foo.ppc.deb', 'bar.i386.deb']
|
186
186
|
@repo.should_receive(@system_func).never
|
187
187
|
expect { @repo.publish(deb_files, @target_distribution_str) }.to raise_error(RuntimeError)
|
188
188
|
end
|
data/spec/repos/yum_spec.rb
CHANGED
@@ -164,14 +164,6 @@ describe RightPublish::YumRepo do
|
|
164
164
|
@repo.publish(rpm_files, @target_distribution_str)
|
165
165
|
end
|
166
166
|
|
167
|
-
it "installs a directory mixed of x86_64 and i386 rpms to a dist" do
|
168
|
-
rpm_files = ['foo-1.x86_64.rpm', 'bar-2.i386.rpm']
|
169
|
-
build_expectations(rpm_files,@target_distribution_map)
|
170
|
-
flexmock(File) { |obj| obj.should_receive(:directory?).and_return(true) }
|
171
|
-
flexmock(Dir) { |obj| obj.should_receive(:glob).and_return(rpm_files) }
|
172
|
-
@repo.publish('some_dir/', @target_distribution_str)
|
173
|
-
end
|
174
|
-
|
175
167
|
it "fails with no files in a dir" do
|
176
168
|
flexmock(File) { |obj| obj.should_receive(:directory?).and_return(true) }
|
177
169
|
flexmock(Dir) { |obj| obj.should_receive(:glob).and_return([]) }
|
@@ -186,7 +178,7 @@ describe RightPublish::YumRepo do
|
|
186
178
|
end
|
187
179
|
|
188
180
|
it "fails with unknown architectures" do
|
189
|
-
rpm_files = ['foo-1.ppc.rpm', 'bar-2.
|
181
|
+
rpm_files = ['foo-1.ppc.rpm', 'bar-2.i386.rpm']
|
190
182
|
@repo.should_receive(:system).never
|
191
183
|
expect { @repo.publish(rpm_files, @target_distribution_str) }.to raise_error(RuntimeError)
|
192
184
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_publish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-06
|
13
|
+
date: 2014-08-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: builder
|
@@ -279,7 +279,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
279
279
|
version: '0'
|
280
280
|
segments:
|
281
281
|
- 0
|
282
|
-
hash:
|
282
|
+
hash: 4173873965182779825
|
283
283
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
284
|
none: false
|
285
285
|
requirements:
|