Skip to content
Snippets Groups Projects
Commit 86ccd1bd authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "install_prereq: Fix check_installed_debs remove subversion"

parents abf241b9 060b7b83
Branches
Tags
No related merge requests found
...@@ -66,13 +66,12 @@ in_test_mode() { ...@@ -66,13 +66,12 @@ in_test_mode() {
} }
check_installed_debs() { check_installed_debs() {
for pack in "$@" for pack in "$@" ; do
do tocheck="${tocheck} ^${pack}$ ~P^${pack}$"
tocheck="${tocheck} ^${pack}$"
done done
pkgs=$(aptitude -F '%c %p' search ${tocheck} 2>/dev/null | awk '/^p/{print $2}') pkgs=$(aptitude -F '%c %p' search ${tocheck} 2>/dev/null | awk '/^p/{print $2}')
if ! [ ${#pkgs} -eq 0 ]; then if [ ${#pkgs} -ne 0 ]; then
echo $pkgs | grep -v ':i386$' echo $pkgs | sed -r -e "s/ ?[^ :]+:i386//g"
fi fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment