diff options
author | fxqnlr <[email protected]> | 2024-09-08 17:21:27 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-08 17:21:27 +0200 |
commit | a8d1be9536bce6d6be2cf1586c8bac049e820d31 (patch) | |
tree | 05c5c78c11f4506ba2eaa8a0751d3d896cfb81e9 /src/packages.rs | |
parent | 695556c3441f5ffd40c35387a5b45e4459684c2c (diff) | |
download | arbs-a8d1be9536bce6d6be2cf1586c8bac049e820d31.tar arbs-a8d1be9536bce6d6be2cf1586c8bac049e820d31.tar.gz arbs-a8d1be9536bce6d6be2cf1586c8bac049e820d31.zip |
save files, real last modified check (doesn't work correctly)
Diffstat (limited to 'src/packages.rs')
-rw-r--r-- | src/packages.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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 @@ | |||
1 | use serde::{Deserialize, Serialize}; | 1 | use serde::{Deserialize, Serialize}; |
2 | 2 | ||
3 | use crate::error::Result; | ||
4 | |||
3 | pub mod pacman; | 5 | pub mod pacman; |
6 | pub mod portage; | ||
4 | 7 | ||
5 | #[derive(Debug, Serialize, Deserialize)] | 8 | #[derive(Debug, Serialize, Deserialize)] |
6 | pub struct Package { | 9 | pub struct Package { |
@@ -10,7 +13,7 @@ pub struct Package { | |||
10 | } | 13 | } |
11 | 14 | ||
12 | pub trait PackageManager { | 15 | pub trait PackageManager { |
13 | fn get_installed(&self) -> Vec<Package>; | 16 | fn get_installed(&self) -> Result<Vec<Package>>; |
14 | 17 | ||
15 | fn install(&self, pkgs: Vec<Package>); | 18 | fn install(&self, pkgs: Vec<Package>); |
16 | } | 19 | } |