This adds a handler for crate:// URLs and rewrites them to crates.io https endpoint and handles properly unpacking the crate. This fixes #24.
14 lines
250 B
Plaintext
14 lines
250 B
Plaintext
#
|
|
# 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() )
|
|
}
|