]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ci: helper: Add a required_deps higher order helper/decorator
authorErik Skultety <eskultet@redhat.com>
Thu, 24 Aug 2023 08:28:55 +0000 (10:28 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 12 Sep 2023 09:36:03 +0000 (11:36 +0200)
commit05d65767cfa189166962353ed9a48c612e157ed6
tree534a3cdcf223ee973679cbf52e0c3079ea688ab5
parenta35b4e4e9779975decb0be46c0086706627428bc
ci: helper: Add a required_deps higher order helper/decorator

Since we'll depend on GitPython for repo cloning, we need to make sure
to emit a user friendly error if the module is not installed. This
patch introduces a helper which future patches will use as a decorator.
Inspiration for this helper has been taken out of lcitool where we use
an identical helper for this purpose.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ci/helper