packaging_rake_tasks 1.4.13 → 1.5.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
  SHA256:
3
- metadata.gz: '059259f817d554fce29ebcb0edd1b37514644bd605322ec6b74183618330c8ae'
4
- data.tar.gz: d088cc1ab6e04f6cd50023139ddedcda07c148eb0a3002009b1a166cfa7f430c
3
+ metadata.gz: 99d2716778ca9f5bae89a0ff9a024ed8287c1892907b1a9bd6b57da3e35be4b6
4
+ data.tar.gz: 5c53d47b4e44df0f737f6de4650bed1780f3f4c197514e8ac6dc3bbdcb140080
5
5
  SHA512:
6
- metadata.gz: 966f38193b4f25996858052867e0e24b5b75542f32d25e648fec74b7b82053683f0f004c18bfb53e3a47e835b80ccc62f53a5f3322d6a8ab9d9a9018532d967a
7
- data.tar.gz: 3a890f6ee3d46236e7354ed0f483e9a6315cd0de3e03b66e1f27c9ce53861d5ff4a6fe36570eb73580ecb035bbd586fa5cc50cc76cbb2539c112b39db12f30ed
6
+ metadata.gz: de603feead7958f7ac02a6263a7fe6b8aa36691d948c995398b7327d9f3ed9c753f564409e4e2aaa18df590856f5181e14cb20e07be4468a1763dd4b6a8e74c7
7
+ data.tar.gz: 167c400d98bd31136c73dbaf88e62308878e155ca9d43f63a7e8fb6ecbcdec2867e8719a1f05b4cec501b9dfab7ce5af7b6c13f34aeb3bd6837e09545e95143c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.13
1
+ 1.5.1
@@ -80,5 +80,18 @@ module Packaging
80
80
  return @version = File.read(versions.first).strip unless versions.empty?
81
81
  raise "cannot find version" #TODO more heuristic
82
82
  end
83
+
84
+ # configuration summary
85
+ # @return [Array<String>] human readable summary
86
+ def summary
87
+ [
88
+ "Package directory: #{package_dir}",
89
+ "OBS instance: #{obs_api}",
90
+ "OBS project: #{obs_project}",
91
+ "OBS package name: #{package_name}",
92
+ "OBS build target: #{build_dist}",
93
+ "OBS submit target: #{obs_sr_project}"
94
+ ]
95
+ end
83
96
  end
84
97
  end
@@ -56,7 +56,9 @@ namespace :build_dependencies do
56
56
  else
57
57
  sudo = Process.euid.zero? ? "" : "sudo"
58
58
  interactive = $stdin.tty? ? "" : "--non-interactive"
59
- cmd = "#{sudo} zypper #{interactive} install #{escaped_list}"
59
+ # allow package downgrade to avoid failures in CI when the installed
60
+ # packages are higher than the available ones
61
+ cmd = "#{sudo} zypper #{interactive} install --allow-downgrade #{escaped_list}"
60
62
  sh(cmd)
61
63
  end
62
64
  end
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
  namespace :check do
19
- desc "check if everything is commited to git repository"
19
+ desc "check if everything is committed to git repository"
20
20
  task :committed do
21
21
  ignored = `git ls-files -o --exclude-standard .`
22
22
 
@@ -26,12 +26,17 @@ namespace :check do
26
26
  raise "New files missing in git (or add them to to .gitignore):\n#{ignored}\n\n"
27
27
  end
28
28
 
29
+ if ENV["CHECK_MODIFIED"] == "0" || ENV["CHECK_MODIFIED"] == "false"
30
+ puts "WARNING: Skipping modified files check!"
31
+ next
32
+ end
33
+
29
34
  modified = `git ls-files -m --exclude-standard .`
30
35
 
31
36
  raise "git ls-files failed." unless $?.exitstatus.zero?
32
37
 
33
38
  if ! modified.empty?
34
- raise "Modified files not commited:\n#{modified}"
39
+ raise "Modified files not committed:\n#{modified}"
35
40
  end
36
41
  end
37
42
  end
@@ -64,6 +64,9 @@ def license_report
64
64
  elsif fn =~ /\.md\z/ || fn =~ /\.doc\z/ || fn =~ /\.txt\z/
65
65
  report[:skipped] << "#{fn}: skipped by name match (documentation file)"
66
66
  next
67
+ elsif fn =~ /\.svg\z/ || fn =~ /\.eps\z/
68
+ report[:skipped] << "#{fn}: skipped by name match (vector image)"
69
+ next
67
70
  end
68
71
  skipped = Packaging::Configuration.instance.skip_license_check.any? do |skip|
69
72
  res = fn =~ skip
data/lib/tasks/osc.rake CHANGED
@@ -160,8 +160,12 @@ namespace :osc do
160
160
  Dir.chdir osc_checkout_dir do
161
161
  puts "building package..." if verbose
162
162
 
163
- # pipe yes to osc build to automatic rebuild broken build root if it happen
164
- command = "yes | osc -A '#{obs_api}' build"
163
+ # feed the "osc build" command with "y" input to automatically rebuild
164
+ # the broken build root if that happens, three attempts should be enough in most cases
165
+ # do not use the "yes" command here as the endless output might cause endless loop
166
+ # (workaround for a broken rpmlint/checkbashisms test,
167
+ # https://bugzilla.suse.com/show_bug.cgi?id=1190094)
168
+ command = "echo -e 'y\\ny\\ny\\n' | osc -A '#{obs_api}' build"
165
169
  command << " --no-verify" #ignore untrusted BS projects
166
170
  command << " --release=1" #have always same release number
167
171
  # store packages for given base system at one place, so it speeds up rebuild
@@ -227,7 +231,7 @@ namespace :osc do
227
231
  desc "Create submit request from devel project to target project without any other packaging or checking"
228
232
  task :force do
229
233
  # wait for the server service to finish to avoid "service in progress"
230
- # error when creating a SR for a freshly commited package
234
+ # error when creating a SR for a freshly committed package
231
235
  puts "Waiting for the server side service..."
232
236
  sh "osc", "-A", obs_api, "service", "wait", obs_project, package_name
233
237
 
@@ -239,4 +243,9 @@ namespace :osc do
239
243
  end
240
244
  end
241
245
  end
246
+
247
+ desc "Print the current packaging configuration"
248
+ task :config do
249
+ puts Packaging::Configuration.instance.summary.join("\n")
250
+ end
242
251
  end
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.4.13
4
+ version: 1.5.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: 2020-12-01 00:00:00.000000000 Z
11
+ date: 2021-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  requirements: []
69
69
  rubyforge_project:
70
- rubygems_version: 2.7.6.2
70
+ rubygems_version: 2.7.6.3
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: Rake tasks providing tasks to package project in git and integration with