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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07be7d847721fb9cd00e02a81a61181036ea3c95
4
- data.tar.gz: 40d1a420ffdc26ce7a72c66de362365684247428
3
+ metadata.gz: fbe4ea75dd5233ccec83fa0a0c6fba4712194428
4
+ data.tar.gz: e0d4403b05fe4afd7270a05ab64d5e5d61c88255
5
5
  SHA512:
6
- metadata.gz: 4236b2291ea9d9a345650354b97647e132842d9c114e1eb71392111aa89f8e3b3dde0fda6f1fe20978fe0ce51989f86a87266ffbcbebcec54f63134bc13f0d3b
7
- data.tar.gz: 427112492ed7493be6d74be0a4f7aad8c9fc666ac6f584955f134ee1ee6ebad8279883bb117b9062308eadb2cf3ed62fb4cac6b9650d132f821a87d1231bebf6
6
+ metadata.gz: 18099493406c1fdfa8087cf3d6458b60e11132821b4b9256e63dfcf08cd11638c77a61c5fb0539b1989a5f3a87cbcd08ee7dc0b6eb62d6c1162d707aa42decec
7
+ data.tar.gz: 1ef3641679beea6b83b61cfafb6a37b12f2e22047af1433fa33397a277211aa6ff35b49b7ed4c8c6df17692a494d69b20f3d06abb0dca48af350e1e66a7f6f78
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
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(/(bnc|fate|boo|bsc|bgo)#[0-9]+/i) ||
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>, fate#<number>, boo#<number>, bsc#<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.0
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-06 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake