Remove the unnecessary flatpak feature flag
This commit is contained in:
@@ -33,4 +33,3 @@ strip = true
|
|||||||
default = []
|
default = []
|
||||||
debian = ["pacdef_core/debian"]
|
debian = ["pacdef_core/debian"]
|
||||||
arch = ["pacdef_core/arch"]
|
arch = ["pacdef_core/arch"]
|
||||||
flatpak = ["pacdef_core/flatpak"]
|
|
||||||
|
|||||||
@@ -35,4 +35,3 @@ rust-apt = { version = "0.5", optional = true }
|
|||||||
default = []
|
default = []
|
||||||
arch = ["dep:alpm"]
|
arch = ["dep:alpm"]
|
||||||
debian = ["dep:rust-apt"]
|
debian = ["dep:rust-apt"]
|
||||||
flatpak = []
|
|
||||||
|
|||||||
@@ -4,5 +4,4 @@ pub mod arch;
|
|||||||
pub mod debian;
|
pub mod debian;
|
||||||
pub mod python;
|
pub mod python;
|
||||||
pub mod rust;
|
pub mod rust;
|
||||||
#[cfg(feature = "flatpak")]
|
|
||||||
pub mod flatpak;
|
pub mod flatpak;
|
||||||
|
|||||||
@@ -18,6 +18,5 @@ pub enum Backends {
|
|||||||
Debian,
|
Debian,
|
||||||
Python,
|
Python,
|
||||||
Rust,
|
Rust,
|
||||||
#[cfg(feature = "flatpak")]
|
|
||||||
Flatpak,
|
Flatpak,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,11 +129,8 @@ impl Pacdef {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "flatpak")]
|
if let Some(flatpak) = backend.as_any_mut().downcast_mut::<crate::backend::Flatpak>() {
|
||||||
{
|
flatpak.systemwide = self.config.flatpak_systemwide;
|
||||||
if let Some(flatpak) = backend.as_any_mut().downcast_mut::<crate::backend::Flatpak>() {
|
|
||||||
flatpak.systemwide = self.config.flatpak_systemwide;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user