summaryrefslogtreecommitdiff
path: root/src/packages.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2024-09-08 17:21:27 +0200
committerfxqnlr <[email protected]>2024-09-08 17:21:27 +0200
commita8d1be9536bce6d6be2cf1586c8bac049e820d31 (patch)
tree05c5c78c11f4506ba2eaa8a0751d3d896cfb81e9 /src/packages.rs
parent695556c3441f5ffd40c35387a5b45e4459684c2c (diff)
downloadarbs-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.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}