packaging_rake_tasks 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tasks/check_changelog.rake +33 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbe4ea75dd5233ccec83fa0a0c6fba4712194428
|
4
|
+
data.tar.gz: e0d4403b05fe4afd7270a05ab64d5e5d61c88255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18099493406c1fdfa8087cf3d6458b60e11132821b4b9256e63dfcf08cd11638c77a61c5fb0539b1989a5f3a87cbcd08ee7dc0b6eb62d6c1162d707aa42decec
|
7
|
+
data.tar.gz: 1ef3641679beea6b83b61cfafb6a37b12f2e22047af1433fa33397a277211aa6ff35b49b7ed4c8c6df17692a494d69b20f3d06abb0dca48af350e1e66a7f6f78
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.1
|
@@ -16,6 +16,37 @@
|
|
16
16
|
|
17
17
|
require 'rake'
|
18
18
|
|
19
|
+
|
20
|
+
# try to keep it in sync with https://github.com/openSUSE/open-build-service/blob/master/src/api/db/seeds.rb
|
21
|
+
ID_MATCHERS = [
|
22
|
+
/boost#(\d+)/,
|
23
|
+
/bco#(\d+)/,
|
24
|
+
/RT#(\d+)/,
|
25
|
+
/CVE-(\d\d\d\d-\d+)/,
|
26
|
+
/deb#(\d+)/,
|
27
|
+
/fdo#(\d+)/,
|
28
|
+
/GCC#(\d+)/,
|
29
|
+
/bgo#(\d+)/,
|
30
|
+
/bio#(\d+)/,
|
31
|
+
/(?:Kernel|K|bko)#(\d+)/,
|
32
|
+
/kde#(\d+)/,
|
33
|
+
/b?lp#(\d+)/,
|
34
|
+
/Meego#(\d+)/,
|
35
|
+
/bmo#(\d+)/,
|
36
|
+
/(?:bnc|BNC|bsc|BSC|boo|BOO)\s*[#:]\s*(\d+)/,
|
37
|
+
/ITS#(\d+)/,
|
38
|
+
/i#(\d+)/,
|
39
|
+
/(?:fate|Fate|FATE)\s*#\s*(\d+)/,
|
40
|
+
/rh#(\d+)/,
|
41
|
+
/bso#(\d+)/,
|
42
|
+
/sf#(\d+)/,
|
43
|
+
/(?:bxc|Xamarin)#(\d+)/,
|
44
|
+
/bxo#(\d+)/,
|
45
|
+
/obs#(\d+)/,
|
46
|
+
/build#(\d+)/,
|
47
|
+
/osc#(\d+)/
|
48
|
+
]
|
49
|
+
|
19
50
|
namespace "check" do
|
20
51
|
desc "Checking for new IDs (bugzilla,fate,...) in *.changes file"
|
21
52
|
task :changelog => :package do
|
@@ -34,18 +65,15 @@ namespace "check" do
|
|
34
65
|
# has been changed
|
35
66
|
if version_changed?( "#{osc_checkout_dir}/#{package_name}.spec" )
|
36
67
|
Dir.chdir(osc_checkout_dir) do
|
37
|
-
# Tags described in https://github.com/openSUSE/osc-plugin-factory/blob/e12bc02e9817277335ce6adaa8e8d334d03fcc5d/check_tags_in_requests.py#L63
|
38
68
|
cmd = "osc -A '#{obs_api}' cat " \
|
39
69
|
" '#{obs_sr_project}' '#{package_name}' '#{package_name}.changes' "\
|
40
70
|
"| diff - '#{package_name}.changes'"
|
41
71
|
puts cmd if verbose
|
42
72
|
ret = `bash -c '#{cmd}'`
|
43
|
-
unless ret.match(
|
44
|
-
ret.match(/cve-[0-9]{4}-[0-9]+/i)
|
73
|
+
unless ID_MATCHERS.any?{|m| ret.match(m) }
|
45
74
|
raise "Stopping, missing new bugzilla or fate entry " \
|
46
75
|
"in the *.changes file.\n"\
|
47
|
-
"e.g. bnc#<number
|
48
|
-
"bgo#<number>, cve-<number>"
|
76
|
+
"e.g. bnc#<number> or fate#<number>"
|
49
77
|
end
|
50
78
|
end
|
51
79
|
else
|
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.3.
|
4
|
+
version: 1.3.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: 2017-04-
|
11
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|