read global package.mask

This commit is contained in:
2025-12-13 04:49:28 +00:00
parent fd3efced29
commit 4969177893
4 changed files with 39 additions and 2 deletions

View File

@@ -8,6 +8,16 @@ fn main() {
.nth(1)
.expect("expected path to mockrepo as first argument");
let repo = Repo::new(&repo_path).expect("failed to read repo");
let global_package_mask = repo
.package_mask()
.iter()
.map(Atom::to_string)
.sorted()
.collect::<Vec<_>>();
assert_eq!(global_package_mask, vec!["app-editors/vim"]);
let profile = repo
.evaluate_profile("gentoo-desktop")
.expect("failed to evaluate profile");