We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e685cf3 commit de53e69Copy full SHA for de53e69
lib/rootfs/data.rb
@@ -60,6 +60,24 @@ def from_gentoo_txt(str, keywords)
60
results
61
end
62
63
+ def from_fedora_txt(str, keywords)
64
+ results = []
65
+ lines = str.split("\n")
66
+ lines.each do |line|
67
+ file = line.delete_prefix(".")
68
+
69
+ all_matched = true
70
+ keywords.each do |keyword|
71
+ unless file.include?(keyword)
72
+ all_matched = false
73
+ break
74
+ end
75
76
+ results.push(file) if all_matched
77
78
+ results
79
80
81
def from_alpine_yaml(str)
82
results = {}
83
flavors = str.split("-\n")
0 commit comments