yast-rake 0.2.19 → 0.2.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/tasks/install.rake +11 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae819ccad4f51a1e4e19aa03c1c16688b7f2fd5c
4
- data.tar.gz: 30f659dcb03092e4ce0ea6e1534b6e2d525e931d
3
+ metadata.gz: '02962d5cbc57127f111ebacb207fac79953f7940'
4
+ data.tar.gz: e1a61f21f4e64a03b8905c61c99c046715be78a2
5
5
  SHA512:
6
- metadata.gz: 113491b6c9bd8699100a23e167ca962367fd7d39945a24fdfa2a5bdd80cd5ec879cab0d335d637c00797133dfe78358b1e6e03dda1ab72026085eae19ec8d1e3
7
- data.tar.gz: 2c29d371846a4d22ee5e3d14984389e5a6aceadd2da2fb01b41b14cbb037d01aa60f192c9ed89440af4acb15e8f77e0bacbfe4e4609d9293d4567dd4729d55e1
6
+ metadata.gz: 76f0f848cd98470bdcf7d2eb4af9a712bd245559cddbfab390c13b2d240f2333d2e5e16c1d343df8278d30fdf28c3cf208ef4a27e4303e22101f3ea8d649ee48
7
+ data.tar.gz: 4948a6b74b91b74676fd0c292a9ed2911f5e5e8468614b5376bf3590bf980d8c277dc3d1263138440ad6b1c7151e3fcc26c03b62d96aead8a4445d0b71264da6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.19
1
+ 0.2.20
@@ -28,13 +28,22 @@ module Packaging
28
28
  YAST_LIB_DIR = DESTDIR + "/usr/lib/YaST2/"
29
29
  YAST_DESKTOP_DIR = DESTDIR + "/usr/share/applications/YaST2/"
30
30
  AUTOYAST_RNC_DIR = YAST_DIR + "schema/autoyast/rnc/"
31
- FILLUP_DIR = DESTDIR + "/usr/share/fillup-templates/"
32
31
 
33
32
  # specific directory that contain dynamic part of package name
34
33
  def install_doc_dir
35
34
  DESTDIR + "/usr/share/doc/packages/#{package_name}/"
36
35
  end
37
36
 
37
+ # @return [Array<String>] Possible fillup templates directories
38
+ FILLUP_DIRS = ["/usr/share/fillup-templates", "/var/adm/fillup-templates"].freeze
39
+
40
+ # @return [String] fillup-templates directory
41
+ def fillup_dir
42
+ found = FILLUP_DIRS.find { |d| Dir.exist?(d) }
43
+ reldir = found || FILLUP_DIRS.first
44
+ DESTDIR + reldir
45
+ end
46
+
38
47
  # Gets installation locations. Hash contain glob as keys and target
39
48
  # directory as values. Each found file/directory from glob is passed
40
49
  # to FileUtils.cp_r as source and value as destination
@@ -49,7 +58,7 @@ module Packaging
49
58
  "**/src/servers_non_y2" => YAST_LIB_DIR,
50
59
  "**/src/bin" => YAST_LIB_DIR,
51
60
  "**/src/autoyast[_-]rnc/*" => AUTOYAST_RNC_DIR,
52
- "**/src/fillup/*" => FILLUP_DIR,
61
+ "**/src/fillup/*" => fillup_dir,
53
62
  "**/src/desktop/*.desktop" => YAST_DESKTOP_DIR,
54
63
  "{README*,COPYING,CONTRIBUTING.md}" => install_doc_dir
55
64
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yast-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.19
4
+ version: 0.2.20
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-11-30 00:00:00.000000000 Z
11
+ date: 2018-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.6.13
83
+ rubygems_version: 2.6.14
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Rake tasks providing basic work-flow for Yast development