Obsolete
/
packaging
Archived
3
0
Fork 0

Removed .spec-related upstreamed code.

master
Luka Vandervelden 2019-08-16 13:37:11 +02:00
parent 832edb5f8d
commit ef774194dc
1 changed files with 0 additions and 50 deletions

View File

@ -30,56 +30,6 @@ module FileUtils
end
end
# FIXME: This could probably be shorter and less stupid with a macro or two.
class SpecFileParser::StringContainer
def as_s : String
value
end
def as_a_or_s : Array(String)
# FIXME: We should probably be splitting the string around comas.
[value]
end
def as_s_or_ls : String
value
end
end
class SpecFileParser::LongStringContainer
def as_s : String
raise "short string expected, got multiline text section"
end
def as_a_or_s : Array(String)
raise "list or string expected, got multiline text section"
end
def as_s_or_ls : String
value
end
end
class SpecFileParser::ArrayContainer
def as_s : String
raise "string expected, got list"
end
def as_a_or_s : Array(String)
value
end
def as_s_or_ls : String
raise "string or multiline text section expected, got list"
end
end
class SpecFileParser::SectionContainer
def as_s : String
raise "string expected, got section"
end
def as_a_or_s : Array(String)
raise "list or string expected, got section"
end
def as_s_or_ls : String
raise "string or multiline text section expected, got section"
end
end
class Package::Recipe
@context : Context