From a2250edadb6d3a7f523f1c54e18dc09a160de36f Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 28 Jan 2024 23:24:33 +0100 Subject: [PATCH] feat: with apt before package Signed-off-by: kjuulh --- crates/cuddle-ci/src/rust_service/apt.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/cuddle-ci/src/rust_service/apt.rs b/crates/cuddle-ci/src/rust_service/apt.rs index 0f02ced..6f5df9c 100644 --- a/crates/cuddle-ci/src/rust_service/apt.rs +++ b/crates/cuddle-ci/src/rust_service/apt.rs @@ -45,6 +45,10 @@ pub trait AptExt { fn with_apt(&mut self, deps: &[&str]) -> &mut Self { self } + + fn with_apt_release(&mut self, deps: &[&str]) -> &mut Self { + self + } } impl AptExt for RustService { @@ -53,6 +57,12 @@ impl AptExt for RustService { Apt::new().extend(deps), ))) } + + fn with_apt_release(&mut self, deps: &[&str]) -> &mut Self { + self.with_stage(super::RustServiceStage::BeforePackage(Arc::new( + Apt::new().extend(deps), + ))) + } } impl AptExt for LeptosService {