feat: with apt before package
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-01-28 23:24:33 +01:00
parent 14ab05eb9b
commit a2250edadb
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -45,6 +45,10 @@ pub trait AptExt {
fn with_apt(&mut self, deps: &[&str]) -> &mut Self { fn with_apt(&mut self, deps: &[&str]) -> &mut Self {
self self
} }
fn with_apt_release(&mut self, deps: &[&str]) -> &mut Self {
self
}
} }
impl AptExt for RustService { impl AptExt for RustService {
@ -53,6 +57,12 @@ impl AptExt for RustService {
Apt::new().extend(deps), 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 { impl AptExt for LeptosService {