Expand description
Contains miscellaneous helper utilities.
Structs§
- Exception thrown from an
extern "C++"function.
Enums§
- Disk Space that
aptwill use for a transaction. - Numeral System for unit conversion.
Functions§
- Lock the APT lockfile. This should be done before modifying any APT files such as with
crate::cache::Cache::updateand thenapt_unlockshould be called after. - Unlock the Dpkg lockfile. This should be done before manually running
crate::cache::Cache::do_installand thenapt_unlock_innershould be called after. - Unlock the APT lockfile.
- Unlock the Dpkg lockfile.
- Compares two package versions,
ver1andver2. The returned enum variant applies to the first version passed in. - Get an APT-styled progress bar.
- Get the terminal’s height, i.e. the number of rows it has.
- Get the terminal’s width, i.e. the number of columns it has.
- Converts seconds into a human readable time string.
- Converts bytes into human readable output.