impl Repo and md5-cache reading

This commit is contained in:
John Turner
2025-10-29 20:06:59 +00:00
parent 8937e096a4
commit 72b6774e2b
4 changed files with 403 additions and 22 deletions

10
tests/repo.rs Normal file
View File

@@ -0,0 +1,10 @@
use gentoo_utils::ebuild::repo::Repo;
#[test]
fn test_read_repo() {
let repo = Repo::new("/var/db/repos/gentoo");
for category in repo.categories().unwrap().map(|cat| cat.unwrap()) {
for _ in category.ebuilds().unwrap().map(|ebuild| ebuild.unwrap()) {}
}
}