forked from gentoo-utils/gentoo-utils
impl Repo and md5-cache reading
This commit is contained in:
10
tests/repo.rs
Normal file
10
tests/repo.rs
Normal 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()) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user