|
|
@ -845,7 +845,8 @@ impl Update {
|
|
|
|
|
|
|
|
|
|
|
|
fn is_deb_package(&self) -> bool {
|
|
|
|
fn is_deb_package(&self) -> bool {
|
|
|
|
// First check if we're in a typical Debian installation path
|
|
|
|
// First check if we're in a typical Debian installation path
|
|
|
|
let in_system_path = self.extract_path
|
|
|
|
let in_system_path = self
|
|
|
|
|
|
|
|
.extract_path
|
|
|
|
.to_str()
|
|
|
|
.to_str()
|
|
|
|
.map(|p| p.starts_with("/usr"))
|
|
|
|
.map(|p| p.starts_with("/usr"))
|
|
|
|
.unwrap_or(false);
|
|
|
|
.unwrap_or(false);
|
|
|
|