depot3 3.0.13 → 3.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/d3/client/class_methods.rb +5 -0
- data/lib/d3/client/receipt.rb +3 -0
- data/lib/d3/utility.rb +3 -0
- data/lib/d3/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16ccf3f7c58877a4d5cab64e36ec412aba7f4b04
|
4
|
+
data.tar.gz: 96f9128b249fb8fa2c1ca7a2bb6b67a2cd014bc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75c17b5a895ea1efa62a09458bb88cdbb89d50d66d312c3eae253f7f2de6f0cb2233b5ba36230812c9d061ac8bd1277265bcd92b13edcd04c69920a5df433927
|
7
|
+
data.tar.gz: 4ddec6877a7b22eb2edf09fb2f65a396365ce02a4560d78412a26c2a66b3847946f40ddb93de012eaeb48bb00929bf2bd75a98d0e0cde8873f71dd26504dd909
|
data/CHANGES.md
CHANGED
@@ -325,6 +325,11 @@ module D3
|
|
325
325
|
end # if removable
|
326
326
|
|
327
327
|
# prohibiting_processes
|
328
|
+
# make sure they are all arrays as of v3.0.12
|
329
|
+
unless rcpt.prohibiting_processes.is_a? Array
|
330
|
+
rcpt.prohibiting_processes = JSS.to_s_and_a(rcpt.prohibiting_processes)[:arrayform]
|
331
|
+
need_update = true
|
332
|
+
end
|
328
333
|
if rcpt.prohibiting_processes.sort != pkgdata[:prohibiting_processes].sort
|
329
334
|
rcpt.prohibiting_processes = pkgdata[:prohibiting_processes]
|
330
335
|
D3.log "Updating prohibiting_processes for #{rcpt.edition}", :info
|
data/lib/d3/client/receipt.rb
CHANGED
@@ -576,12 +576,15 @@ module D3
|
|
576
576
|
|
577
577
|
@removable = args[:removable]
|
578
578
|
@prohibiting_processes = args[:prohibiting_processes]
|
579
|
+
@prohibiting_processes ||= []
|
580
|
+
|
579
581
|
@frozen = args[:frozen]
|
580
582
|
@pre_remove_script_id = args[:pre_remove_script_id]
|
581
583
|
@post_remove_script_id = args[:post_remove_script_id]
|
582
584
|
|
583
585
|
@expiration = args[:expiration].to_i
|
584
586
|
@expiration_paths = args[:expiration_paths]
|
587
|
+
@expiration_paths ||= []
|
585
588
|
@custom_expiration = args[:custom_expiration]
|
586
589
|
|
587
590
|
@manually_installed = (@admin != D3::AUTO_INSTALL_ADMIN)
|
data/lib/d3/utility.rb
CHANGED
@@ -32,6 +32,9 @@ module D3
|
|
32
32
|
### @return [Boolean]
|
33
33
|
###
|
34
34
|
def self.prohibited_by_process_running? (xprocs)
|
35
|
+
# this is needed in case saved rcpts have nil or a string instead
|
36
|
+
# of an array, from pre v3.0.12
|
37
|
+
xprocs = JSS.to_s_and_a(xprocs)[:arrayform]
|
35
38
|
processes = `/bin/ps -A -c -o comm`.split("\n")
|
36
39
|
current_prohibiting = processes & xprocs
|
37
40
|
return true unless current_prohibiting.empty?
|
data/lib/d3/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: depot3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Lasell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-keychain
|