machinery-tool 1.16.0 → 1.16.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: a4b7c4fc1cda138bae3373d5557bb65bd30481a5
4
- data.tar.gz: c9f706f3cb00c6eac9c8a3b01eaf0ba1a5345704
3
+ metadata.gz: c16d006a71ff2c81996b586fdc18486e2e27494a
4
+ data.tar.gz: da1bc592275c11d1ef83244166280458dd3dc1be
5
5
  SHA512:
6
- metadata.gz: e3806f42441561cc01b2b6c927627ab69b673feb65194bacedd7d460507af95070cf8ae3d087560b40ea2d9c64f158825469030a129d78458555af6137435393
7
- data.tar.gz: 2212be5d36387f90dbb05b66b31cc1af51ae829a39b9208d04b8218e93590c05ae6eb21bba91db285c3f45d8e2823f35706d6d460d69054432abcfa34235e8cd
6
+ metadata.gz: ad6aa65605ad725a21de1b259de9306631a4c73015f954cc987e320c62171b696ad9a2c35f5ee53783cda9ed1711b2964b312ae1b31bad41766c33e2cc0429f2
7
+ data.tar.gz: e1ff5d9957007a85d203bcb5291f0f7de189edb6cbec815d5e2e05ff054b92142ded258fdf669412394b5f828920ef547dbdb7b30739ca7bdc3c6bcc58ae3e0f
data/.git_revision CHANGED
@@ -1 +1 @@
1
- f5f2a71bd21d86dcbc1b90e30b8af0f466b335bd
1
+ e2a5941fcf2ffbbcbd765e23e860fc417592fdd1
data/NEWS CHANGED
@@ -1,6 +1,11 @@
1
1
  # Machinery Release Notes
2
2
 
3
3
 
4
+ ## Version 1.16.1 - Mon Nov 09 17:55:15 CET 2015 - thardeck@suse.de
5
+
6
+ * Fix type recognition in case of empty files for config- and changed-managed-files
7
+ inspectors (gh#SUSE/machinery#1612)
8
+
4
9
  ## Version 1.16.0 - Fri Nov 06 14:20:47 CET 2015 - thardeck@suse.de
5
10
 
6
11
  * The error message "There is already a server with the same port running" has
data/lib/rpm_database.rb CHANGED
@@ -122,7 +122,8 @@ class RpmDatabase
122
122
  end
123
123
 
124
124
  def parse_stat_line(line)
125
- mode, user, group, uid, gid, type, *path = line.split(":")
125
+ mode, user, group, uid, gid, type, *path_line = line.split(":")
126
+ path = path_line.join(":").chomp
126
127
 
127
128
  user = uid if user == "UNKNOWN"
128
129
  group = gid if group == "UNKNOWN"
@@ -132,11 +133,15 @@ class RpmDatabase
132
133
  "dir"
133
134
  when "symbolic link"
134
135
  "link"
135
- when "regular file"
136
+ when /file$/
136
137
  "file"
138
+ else
139
+ raise(
140
+ "The inspection failed because of the unknown type `#{type}` of file `#{path}`."
141
+ )
137
142
  end
138
143
 
139
- [path.join(":").chomp,
144
+ [path,
140
145
  {
141
146
  mode: mode,
142
147
  user: user,
data/lib/version.rb CHANGED
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Machinery
19
19
 
20
- VERSION = "1.16.0"
20
+ VERSION = "1.16.1"
21
21
 
22
22
  end
@@ -2,4 +2,4 @@
2
2
 
3
3
  package main
4
4
 
5
- const VERSION = "f5f2a71bd21d86dcbc1b90e30b8af0f466b335bd"
5
+ const VERSION = "e2a5941fcf2ffbbcbd765e23e860fc417592fdd1"
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: machinery-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SUSE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-06 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cheetah