summaryrefslogtreecommitdiff
path: root/src/packages.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/packages.rs')
-rw-r--r--src/packages.rs5
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 @@
1use serde::{Deserialize, Serialize}; 1use serde::{Deserialize, Serialize};
2 2
3use crate::error::Result;
4
3pub mod pacman; 5pub mod pacman;
6pub mod portage;
4 7
5#[derive(Debug, Serialize, Deserialize)] 8#[derive(Debug, Serialize, Deserialize)]
6pub struct Package { 9pub struct Package {
@@ -10,7 +13,7 @@ pub struct Package {
10} 13}
11 14
12pub trait PackageManager { 15pub 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}