feat: new config files
This commit is contained in:
parent
3902a6beaf
commit
d1882114c7
7 changed files with 71 additions and 2 deletions
|
@ -7,6 +7,7 @@ use log::{debug, trace};
|
|||
use errors::{BinError, BuildError, InstallError};
|
||||
use manifest::Manifest;
|
||||
use pkgfile::PKGFile;
|
||||
use crate::CONFIG;
|
||||
|
||||
use crate::tmpfs::TempDir;
|
||||
use crate::types::fetch::TryFetch;
|
||||
|
@ -108,11 +109,17 @@ impl PackageInstaller {
|
|||
}
|
||||
}
|
||||
|
||||
match self.install_type {
|
||||
let r = match self.install_type {
|
||||
InstallType::Bin => self.bin()
|
||||
.map_err(|e| InstallError::BinError(e)),
|
||||
InstallType::Build => self.build()
|
||||
.map_err(|e| InstallError::BuildError(e)),
|
||||
};
|
||||
|
||||
if let Err(e) = r {
|
||||
return Err(e);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue