diff options
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 | } |