Struct libalpm::Options
[−]
[src]
pub struct Options { pub root_dir: String, pub db_path: String, pub cache_dir: String, pub log_file: String, pub gpg_dir: String, pub hook_dir: String, pub hold_pkg: Vec<String>, pub ignore_pkg: Vec<String>, pub ignore_group: Vec<String>, pub no_upgrade: Vec<String>, pub no_extract: Vec<String>, pub use_syslog: bool, pub color: bool, pub total_download: bool, pub check_space: bool, pub verbose_pkg_lists: bool, pub repositories: Vec<RepoOptions>, }
The options that can be set in the pacman conf file.
Fields
root_dir: String
The root directory of the instance. Packages are installed relative to here.
db_path: String
The location of the synced databases.
cache_dir: String
The location of the cache directory.
log_file: String
The location of the log file.
gpg_dir: String
The location of the gpg directory.
hook_dir: String
hold_pkg: Vec<String>
ignore_pkg: Vec<String>
ignore_group: Vec<String>
no_upgrade: Vec<String>
no_extract: Vec<String>
use_syslog: bool
color: bool
total_download: bool
check_space: bool
verbose_pkg_lists: bool
repositories: Vec<RepoOptions>
Methods
impl Options
[src]
fn from_ini(loc: &Path) -> Option<Options>
Reads a pacman-style ini file and returns an Options instance to match
TODO will only be implemented after I've finished the rest of the lib