diff --git a/scripts/deb-install.sh b/scripts/deb-install.sh index 01aee502..a61e5b36 100755 --- a/scripts/deb-install.sh +++ b/scripts/deb-install.sh @@ -46,15 +46,15 @@ set -x # Due to MDEV-14622 and its effect on Spider installation, # Spider has to be installed separately after the server -package_list=$(grep -B 1 'Source: mariadb' Packages | grep 'Package:' | grep -vE 'galera|spider|columnstore' | awk '{print $2}' | xargs) +package_list=$(grep "^Package:" Packages | grep -vE 'galera|spider|columnstore' | awk '{print $2}' | xargs) if grep -qi spider Packages; then - spider_package_list=$(grep -B 1 'Source: mariadb' Packages | grep 'Package:' | grep 'spider' | awk '{print $2}' | xargs) + spider_package_list=$(grep "^Package:" Packages | grep 'spider' | awk '{print $2}' | xargs) fi if grep -qi columnstore Packages; then if [[ $arch != "amd64" ]] && [[ $arch != "arm64" ]]; then bb_log_warn "Due to MCOL-4123, Columnstore won't be installed on $arch" else - columnstore_package_list=$(grep -B 1 'Source: mariadb' Packages | grep 'Package:' | grep 'columnstore' | awk '{print $2}' | xargs) + columnstore_package_list=$(grep "^Package:" Packages | grep 'columnstore' | awk '{print $2}' | xargs) fi fi diff --git a/scripts/deb-upgrade.sh b/scripts/deb-upgrade.sh index 28591414..ba7f380c 100755 --- a/scripts/deb-upgrade.sh +++ b/scripts/deb-upgrade.sh @@ -35,10 +35,10 @@ case $test_mode in if grep -qi columnstore Packages; then bb_log_warn "due to MCOL-4120 (Columnstore leaves the server shut down) and other bugs Columnstore upgrade is tested separately" fi - package_list=$(grep -B 1 'Source: mariadb' Packages | grep 'Package:' | grep -vE 'galera|spider|columnstore' | awk '{print $2}' | sort | uniq | xargs) + package_list=$(grep "^Package:" Packages | grep -vE 'galera|spider|columnstore' | awk '{print $2}' | xargs) if grep -qi spider Packages; then bb_log_warn "due to MDEV-14622 Spider will be installed separately after the server" - spider_package_list=$(grep -B 1 'Source: mariadb' Packages | grep 'Package:' | grep 'spider' | awk '{print $2}' | sort | uniq | xargs) + spider_package_list=$(grep "^Package:" Packages | grep 'spider' | awk '{print $2}' | xargs) fi if grep -si tokudb Packages; then # For the sake of installing TokuDB, disable hugepages @@ -59,7 +59,7 @@ case $test_mode in bb_log_warn "Columnstore isn't necessarily built on Sid, the test will be skipped" exit fi - package_list="mariadb-server "$(grep -B 1 'Source: mariadb' Packages | grep 'Package:' | grep 'columnstore' | awk '{print $2}' | sort | uniq | xargs) + package_list="mariadb-server "$(grep "^Package:" Packages | grep 'columnstore' | awk '{print $2}' | xargs) ;; *) bb_log_err "unknown test mode: $test_mode"