packaging_rake_tasks 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tasks/check_changelog.rake +14 -8
- data/lib/tasks/osc.rake +1 -1
- data/lib/tasks/package.rake +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a6c2f335bedf85cca66fadb1412b1573c61b2a8
|
4
|
+
data.tar.gz: ec31791f04fbc8811acf023de7b21faae6857049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 088613d225ff99c913058e471931fa0daab456f3c3916d8e0d92dfad33dc44c64143718fe16f65ccaaa20a581c3353a4e1d5fa87cded244a0440622685bebe7b
|
7
|
+
data.tar.gz: c5d0825bb4fb74382b68dffa8ca25d0860de8c15fcb55fca0eb23c7a72c7654798c322281724092695017505104bab7c5e7393e4299e71ee2de25d6d75416f6b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.1
|
@@ -18,9 +18,10 @@ require 'rake'
|
|
18
18
|
|
19
19
|
namespace "check" do
|
20
20
|
desc "Checking for new IDs (bugzilla,fate,...) in *.changes file"
|
21
|
-
task :changelog do
|
21
|
+
task :changelog => :package do
|
22
22
|
if obs_sr_project.nil?
|
23
|
-
$stderr.puts "Skipping the changelog check because
|
23
|
+
$stderr.puts "Skipping the changelog check because " \
|
24
|
+
"OBS submit request project " \
|
24
25
|
"is not defined (obs_sr_project)." if verbose
|
25
26
|
next
|
26
27
|
end
|
@@ -29,17 +30,22 @@ namespace "check" do
|
|
29
30
|
copy_sources
|
30
31
|
|
31
32
|
puts "Checking IDs in *.changes file" if verbose
|
32
|
-
# Checking makes only sense if the version in the *.spec file
|
33
|
+
# Checking makes only sense if the version in the *.spec file
|
34
|
+
# has been changed
|
33
35
|
if version_changed?( "#{osc_checkout_dir}/#{package_name}.spec" )
|
34
36
|
Dir.chdir(osc_checkout_dir) do
|
35
37
|
# Tags described in https://github.com/openSUSE/osc-plugin-factory/blob/e12bc02e9817277335ce6adaa8e8d334d03fcc5d/check_tags_in_requests.py#L63
|
36
|
-
cmd = "osc -A '#{obs_api}' cat
|
37
|
-
"'#{package_name}
|
38
|
+
cmd = "osc -A '#{obs_api}' cat " \
|
39
|
+
" '#{obs_sr_project}' '#{package_name}' '#{package_name}.changes' "\
|
40
|
+
"| diff - '#{package_name}.changes'"
|
38
41
|
puts cmd if verbose
|
39
42
|
ret = `bash -c '#{cmd}'`
|
40
|
-
unless ret.match(/(bnc|fate|boo|bsc|bgo)#[0-9]+/i) ||
|
41
|
-
|
42
|
-
|
43
|
+
unless ret.match(/(bnc|fate|boo|bsc|bgo)#[0-9]+/i) ||
|
44
|
+
ret.match(/cve-[0-9]{4}-[0-9]+/i)
|
45
|
+
raise "Stopping, missing new bugzilla or fate entry " \
|
46
|
+
"in the *.changes file.\n"\
|
47
|
+
"e.g. bnc#<number>, fate#<number>, boo#<number>, bsc#<number>, " \
|
48
|
+
"bgo#<number>, cve-<number>"
|
43
49
|
end
|
44
50
|
end
|
45
51
|
else
|
data/lib/tasks/osc.rake
CHANGED
@@ -206,7 +206,7 @@ namespace :osc do
|
|
206
206
|
end
|
207
207
|
|
208
208
|
desc "Create submit request from updated devel project to target project if version change."
|
209
|
-
task :sr => "osc:commit" do
|
209
|
+
task :sr => ["check:changelog", "osc:commit"] do
|
210
210
|
begin
|
211
211
|
checkout
|
212
212
|
unless version_changed?( "#{package_dir}/#{package_name}.spec" )
|
data/lib/tasks/package.rake
CHANGED
@@ -20,5 +20,5 @@ require 'rake'
|
|
20
20
|
|
21
21
|
desc 'Prepare sources for rpm build'
|
22
22
|
# just call the checks and then build the package
|
23
|
-
task :package => ["check:syntax", "check:committed",
|
23
|
+
task :package => ["check:syntax", "check:committed", :test, :tarball]
|
24
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packaging_rake_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josef Reidinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
66
|
rubyforge_project:
|
67
|
-
rubygems_version: 2.
|
67
|
+
rubygems_version: 2.2.2
|
68
68
|
signing_key:
|
69
69
|
specification_version: 4
|
70
70
|
summary: Rake tasks providing tasks to package project in git and integration with
|