Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 92227b61 authored by Robert Nelson's avatar Robert Nelson
Browse files

chroot: add basic dpkg check


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 4ce26364
No related merge requests found
...@@ -326,6 +326,11 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ ...@@ -326,6 +326,11 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
export LC_ALL=C export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
dpkg_check () {
unset pkg_is_not_installed
LC_ALL=C dpkg --list | awk '{print \$2}' | grep "^\${pkg}$" >/dev/null || pkg_is_not_installed="1"
}
check_n_install () { check_n_install () {
unset deb_pkgs unset deb_pkgs
LC_ALL=C dpkg --list | awk '{print \$2}' | grep "^\${pkg}$" >/dev/null || deb_pkgs="\${pkg}" LC_ALL=C dpkg --list | awk '{print \$2}' | grep "^\${pkg}$" >/dev/null || deb_pkgs="\${pkg}"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment