1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod apt;
pub mod pkginfo;
mod progress;
pub mod query;
pub mod search;
pub use oma_apt::error::AptErrors;
pub use oma_apt::PkgCurrentState;
pub use search::PackageStatus;
mod dbus;

pub fn format_description(desc: &str) -> (&str, Option<&str>) {
    if let Some((short, long)) = desc.split_once('\n') {
        (short, Some(long))
    } else {
        (desc, None)
    }
}