Open szepeviktor opened 7 years ago
# Determine whether a Debian package is installed
dpkg_is_installed() {
local PKG="$1"
[ "$(dpkg-query --showformat="\${Status}" --show "$PKG" 2> /dev/null)" == "install ok installed" ]
}
Thanks for your interests ! , I'll keep that open to evaluate it and include it.
To answer your question about where to contribute: I need to think thoroughly to the overall placement of the code as I'm not happy with it. But for now, is_ipv4
would go into libparse.sh
and dpkg_is_installed
would go into another package... not kal-shlib-common
, and probably a file libdpkg.sh
.