apt-pkg-native/examples/epochs.rs
2017-10-15 15:44:24 +01:00

19 lines
385 B
Rust

extern crate apt_pkg_native;
extern crate boolinator;
use apt_pkg_native::Cache;
use boolinator::Boolinator;
fn main() {
let mut cache = Cache::get_singleton();
for item in cache.iter().filter_map(|f| {
f.versions()
.any(|version| version.version().contains(':'))
.as_some_from(|| f.name())
})
{
println!("{}", item);
}
}