petasos 0.3.0 → 0.3.1
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/lib/petasos/location.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7bd8aa04cae7535d319a4b2d9141e2f40bb95b8342613541fe605022735c9b3
|
4
|
+
data.tar.gz: d418dabaf63b7a0b6b2777cd30a3a333bcbc2ee59a60cbd63ceceda9cb78485d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51ad7a4fb5de50153261a857597836cb302c1f6f8263ab850e25dfac91a1b3c8dab751e4222da75c597f259360d9cf7894dc9185fc7034c8046d98e0068cdccb
|
7
|
+
data.tar.gz: 7acb74142c0bf285cad8d715505fb27625dd18ec90cab3f9763c7068ca393bbbb8a01fbd840ce3070721dd323be0ead3b4a1a6fc122154924ae5df4227de3d70
|
data/lib/petasos/location.rb
CHANGED
@@ -46,7 +46,8 @@ class Petasos::Location
|
|
46
46
|
|
47
47
|
# update list of seen files
|
48
48
|
# unless the location opts out
|
49
|
-
|
49
|
+
# or the pool opts out
|
50
|
+
unless config["disable_seen"] or pool["disable_seen"]
|
50
51
|
update_seen_pool_files(pool, seen_pool_files + new_files)
|
51
52
|
end
|
52
53
|
end
|
@@ -131,8 +132,10 @@ class Petasos::Location
|
|
131
132
|
|
132
133
|
def initialize_all_seen_pool_files
|
133
134
|
pools.each do |pool|
|
134
|
-
|
135
|
-
|
135
|
+
unless config["disable_seen"] or pool["disable_seen"]
|
136
|
+
yaml_path = "seen_#{config["name"]}_#{pool["name"]}.yaml"
|
137
|
+
write_yaml(yaml_path, []) unless File.file?(yaml_path)
|
138
|
+
end
|
136
139
|
end
|
137
140
|
end
|
138
141
|
|