apt-pkg-native/examples/epochs.rs
Chris West (Faux) dac9411a56 edition = 2018
2019-01-21 22:22:47 +00:00

15 lines
326 B
Rust

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);
}
}