[1/4] lib/crate.py: install crate fetcher on import

Message ID 20211217153630.1746217-2-matt@madison.systems
State New
Headers show
Series Move crate fetcher to OE_IMPORTS | expand

Commit Message

Matt Madison Dec. 17, 2021, 3:36 p.m. UTC
to enable the move to using OE_IMPORTS for adding
this fetcher.

Signed-off-by: Matt Madison <matt@madison.systems>
---
 meta/lib/crate.py | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/lib/crate.py b/meta/lib/crate.py
index d10f441875..f9db7c28cd 100644
--- a/meta/lib/crate.py
+++ b/meta/lib/crate.py
@@ -147,3 +147,5 @@  class Crate(Wget):
             mdpath = os.path.join(bbpath, cratepath, mdfile)
             with open(mdpath, "w") as f:
                 json.dump(metadata, f)
+
+bb.fetch2.methods.append(Crate())