disable arch by default
This commit is contained in:
@@ -27,3 +27,8 @@ path = "crates/main/main.rs"
|
|||||||
lto = "off"
|
lto = "off"
|
||||||
opt-level = "z"
|
opt-level = "z"
|
||||||
strip = true
|
strip = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = []
|
||||||
|
debian = ["pacdef_core/debian"]
|
||||||
|
arch = ["pacdef_core/arch"]
|
||||||
|
|||||||
@@ -32,6 +32,6 @@ alpm = { version = "2.2", optional = true }
|
|||||||
rust-apt = { version = "0.5", optional = true }
|
rust-apt = { version = "0.5", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["arch"]
|
default = []
|
||||||
arch = ["dep:alpm"]
|
arch = ["dep:alpm"]
|
||||||
debian = ["dep:rust-apt"]
|
debian = ["dep:rust-apt"]
|
||||||
|
|||||||
@@ -109,13 +109,16 @@ impl Pacdef {
|
|||||||
to_install
|
to_install
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "arch")]
|
#[allow(clippy::unused_self, unused_variables)]
|
||||||
fn overwrite_values_from_config(&mut self, backend: &mut dyn Backend) {
|
fn overwrite_values_from_config(&mut self, backend: &mut dyn Backend) {
|
||||||
|
#[cfg(feature = "arch")]
|
||||||
|
{
|
||||||
if let Some(arch) = backend.as_any_mut().downcast_mut::<crate::backend::Arch>() {
|
if let Some(arch) = backend.as_any_mut().downcast_mut::<crate::backend::Arch>() {
|
||||||
arch.binary = self.config.aur_helper.clone();
|
arch.binary = self.config.aur_helper.clone();
|
||||||
arch.aur_rm_args = self.config.aur_rm_args.take();
|
arch.aur_rm_args = self.config.aur_rm_args.take();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn install_packages(&mut self) -> Result<()> {
|
fn install_packages(&mut self) -> Result<()> {
|
||||||
let to_install = self.get_missing_packages();
|
let to_install = self.get_missing_packages();
|
||||||
|
|||||||
Reference in New Issue
Block a user