fn count_dpkg() -> Option<usize> {
        let prefix = match std::env::var_os("PREFIX") {
            None => return None,
            Some(prefix) => prefix,
        };

        let dpkg_dir = Path::new(&prefix).join("var/lib/dpkg/info");

        extra::get_entries(&dpkg_dir).map(|entries| {
            entries
                .iter()
                .filter(|x| extra::path_extension(x).unwrap_or_default() == "list")
                .into_iter()
                .count()
        })
    }
/// Return the number of installed packages for systems
/// that have `dpkg` installed.
/// In android that's mainly termux.
Return the number of installed packages for systems
that have `dpkg` installed.
In android that's mainly termux.
Return the number of installed packages for systems that have ` dpkg ` installed . In android that ' s mainly termux .
fn count_dpkg() -> Option<usize> {
        let prefix = match std::env::var_os("PREFIX") {
            None => return None,
            Some(prefix) => prefix,
        };
        let dpkg_dir = Path::new(&prefix).join("var/lib/dpkg/info");
        extra::get_entries(&dpkg_dir).map(|entries| {
            entries
                .iter()
                .filter(|x| extra::path_extension(x).unwrap_or_default() == "list")
                .into_iter()
                .count()
        })
    }
fn count_dpkg ( ) -> Option < usize > { let prefix = match std :: env :: var_os ( " " ) { None => return None , Some ( prefix ) => prefix , } ; let dpkg_dir = Path :: new ( & prefix ) . join ( " " ) ; extra :: get_entries ( & dpkg_dir ) . map ( | entries | { entries . iter ( ) . filter ( | x | extra :: path_extension ( x ) . unwrap_or_default ( ) == " " ) . into_iter ( ) . count ( ) } ) }
Return the number of installed packages for systems
that have `dpkg` installed.
Return the number of installed packages for systems that have ` dpkg ` installed .