vagrant-vbguest 0.17.1 → 0.17.2
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/.github/stale.yml +18 -0
- data/CHANGELOG.md +4 -0
- data/lib/vagrant-vbguest/installers/centos.rb +15 -5
- data/lib/vagrant-vbguest/installers/suse.rb +7 -6
- data/lib/vagrant-vbguest/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb94505e9e07da36ed7f060ffd7b75aba8857630
|
4
|
+
data.tar.gz: 44f68558cd2324a99720810150247ceab43084d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b65bf33b1953f2a9afa8d4f333a7dd087aa48c96a0b086ae3fe31fed0b91ece91485b9c0f5ab38ef698e47d91d4077e11dc02ad8ec7e56407100cb34688c98dc
|
7
|
+
data.tar.gz: 0cd4b7156d8a57a52616cb9a56c22cc2d6e28e96c1b7cfbcfea5b1360f6ae5e1135fad89f40e881b676462048400846d4567e0c642d47c50591a5c7b657cd385
|
data/.github/stale.yml
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Configuration for https://github.com/probot/stale
|
2
|
+
# Number of days of inactivity before an issue becomes stale
|
3
|
+
daysUntilStale: 60
|
4
|
+
# Number of days of inactivity before a stale issue is closed
|
5
|
+
daysUntilClose: 7
|
6
|
+
# Issues with these labels will never be considered stale
|
7
|
+
exemptLabels:
|
8
|
+
- pinned
|
9
|
+
- security
|
10
|
+
# Label to use when marking an issue as stale
|
11
|
+
staleLabel: wontfix
|
12
|
+
# Comment to post when marking an issue as stale. Set to `false` to disable
|
13
|
+
markComment: >
|
14
|
+
This issue has been automatically marked as stale because it has not had
|
15
|
+
recent activity. It will be closed if no further activity occurs. Thank you
|
16
|
+
for your contributions.
|
17
|
+
# Comment to post when closing a stale issue. Set to `false` to disable
|
18
|
+
closeComment: false
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.17.2 (2019-01-23)
|
2
|
+
|
3
|
+
- ContOS installer now activates all repositories when installing the kernel-devel-`uname -r` package and there's no specific release repository. [GH-320]
|
4
|
+
|
1
5
|
## 0.17.1 (2018-12-20)
|
2
6
|
|
3
7
|
- CentOS keeps default redhat dependencies if kernel-devel-`uname -r` exists [GH-318]
|
@@ -28,12 +28,22 @@ module VagrantVbguest
|
|
28
28
|
@has_kernel_devel_info
|
29
29
|
end
|
30
30
|
|
31
|
+
def has_rel_repo?
|
32
|
+
unless instance_variable_defined?(:@has_rel_repo)
|
33
|
+
rel = release_version
|
34
|
+
@has_rel_repo = communicate.test("yum repolist --enablerepo=C#{rel}-base --enablerepo=C#{rel}-updates")
|
35
|
+
end
|
36
|
+
@has_rel_repo
|
37
|
+
end
|
38
|
+
|
31
39
|
def release_version
|
32
|
-
|
33
|
-
|
34
|
-
release
|
40
|
+
unless instance_variable_defined?(:@release_version)
|
41
|
+
@release_version = nil
|
42
|
+
communicate.sudo('cat /etc/centos-release') do |type, data|
|
43
|
+
@release_version = data.to_s[/(\d+\.\d+(\.\d+)?)/, 1]
|
44
|
+
end
|
35
45
|
end
|
36
|
-
|
46
|
+
@release_version
|
37
47
|
end
|
38
48
|
|
39
49
|
def update_release_repos(opts=nil, &block)
|
@@ -41,7 +51,7 @@ module VagrantVbguest
|
|
41
51
|
end
|
42
52
|
|
43
53
|
def install_kernel_devel(opts=nil, &block)
|
44
|
-
rel = release_version
|
54
|
+
rel = has_rel_repo? ? release_version : '*'
|
45
55
|
cmd = "yum install -y kernel-devel-`uname -r` --enablerepo=C#{rel}-base --enablerepo=C#{rel}-updates"
|
46
56
|
communicate.sudo(cmd, opts, &block)
|
47
57
|
end
|
@@ -29,12 +29,13 @@ module VagrantVbguest
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def dependencies
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
version = os_release["VERSION_ID"].to_f
|
33
|
+
packages =
|
34
|
+
if (10...12).include?(version)
|
35
|
+
['kernel-default-devel', 'gcc', 'make', 'tar']
|
36
|
+
elsif version >= 12.0
|
37
|
+
['kernel-devel', 'gcc', 'make', 'tar']
|
38
|
+
end
|
38
39
|
|
39
40
|
packages.join(' ')
|
40
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-vbguest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Schulze
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: micromachine
|
@@ -60,6 +60,7 @@ executables: []
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
+
- ".github/stale.yml"
|
63
64
|
- ".gitignore"
|
64
65
|
- CHANGELOG.md
|
65
66
|
- Gemfile
|