bitbake: add crate fetcher

This adds a handler for crate:// URLs and rewrites them to crates.io
https endpoint and handles properly unpacking the crate. This fixes #24.
This commit is contained in:
Doug Goldstein
2016-06-29 17:18:09 -05:00
parent d3ee1e59b6
commit 85471f88e5
2 changed files with 215 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#
# crate-fetch class
#
# Registers 'crate' method for Bitbake fetch2.
#
# Adds support for following format in recipe SRC_URI:
# crate://<packagename>/<version>
#
python () {
import crate
bb.fetch2.methods.append( crate.Crate() )
}