Commit dab15f0f authored by Jérome Perrin's avatar Jérome Perrin

support hexagonit.recipe.download recipe

parent 738ebc74
......@@ -139,7 +139,7 @@ def bom_software(installed_software_path): # -> {} (name,kind) -> PkgInfo
else:
addbom(url, '') # XXX detect kind?
elif recipe in ('slapos.recipe.build:download', 'slapos.recipe.build:download-unpacked'):
elif recipe in ('slapos.recipe.build:download', 'slapos.recipe.build:download-unpacked', 'hexagonit.recipe.download', ):
url = geturl(part)
# strip off hash from the url
......
......@@ -152,6 +152,16 @@ url = https://raw.githubusercontent.com/zuphilip/ocropy-models/master/en-default
ocropy-models master https://raw.githubusercontent.com/zuphilip/ocropy-models/master/en-default.pyrnn.gz
""")
# legacy hexagonit.recipe.download recipe
case1("""\
[ocropy-eng-traineddata]
download-only = true
recipe = hexagonit.recipe.download
url = https://raw.githubusercontent.com/zuphilip/ocropy-models/master/en-default.pyrnn.gz
""", """\
ocropy-models master https://raw.githubusercontent.com/zuphilip/ocropy-models/master/en-default.pyrnn.gz
""")
case1("""\
[scons]
recipe = slapos.recipe.build:download-unpacked
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment