From a8d1be9536bce6d6be2cf1586c8bac049e820d31 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Sun, 8 Sep 2024 17:21:27 +0200 Subject: save files, real last modified check (doesn't work correctly) --- src/packages.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/packages.rs') diff --git a/src/packages.rs b/src/packages.rs index 9f765d6..7ac1736 100644 --- a/src/packages.rs +++ b/src/packages.rs @@ -1,6 +1,9 @@ use serde::{Deserialize, Serialize}; +use crate::error::Result; + pub mod pacman; +pub mod portage; #[derive(Debug, Serialize, Deserialize)] pub struct Package { @@ -10,7 +13,7 @@ pub struct Package { } pub trait PackageManager { - fn get_installed(&self) -> Vec; + fn get_installed(&self) -> Result>; fn install(&self, pkgs: Vec); } -- cgit v1.2.3