Skip to content

Commit 6df631e

Browse files
committed
Misc change
1 parent 99d0dd7 commit 6df631e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/anaconda/.devcontainer/install_vulnerable_packages.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ insert_in_2D_array() {
4747
echo "No package version found in upstream."
4848
found_version="0"
4949
fi
50-
echo "Latest version of $package_name: $latest_version"
50+
echo "Latest version of $package_name on Conda Channel: $latest_version"
5151
packages_array[$i,2]="$found_version"
5252
packages_array[$i,3]="$latest_version"
5353
((value++))
@@ -76,12 +76,15 @@ compare_and_install_packages() {
7676
echo -e "\nComparing semver versions between required and present currently for ${packages_array[$i,0]}"
7777
comparison_result=$(compare_semver "${packages_array[$i,1]}" "${packages_array[$i,2]}")
7878
if [[ $comparison_result == "greater" ]]; then
79-
echo -e "\nComparing semver versions between required and available through conda channel for $1"
79+
echo -e "\n${packages_array[$i,0]} : ${packages_array[$i,1]} > ${packages_array[$i,2]}"
80+
echo -e "\nComparing semver versions between required and available through conda channel for ${packages_array[$i,0]}"
8081
comparison_result2=$(compare_semver "${packages_array[$i,1]}" "${packages_array[$i,3]}")
8182
if [[ $comparison_result2 == "greater" ]]; then
83+
echo -e "\n${packages_array[$i,0]} : ${packages_array[$i,1]} > ${packages_array[$i,3]}"
8284
echo -e "\nInstalling ${packages_array[$i,0]} using pip"
8385
python3 -m pip install --upgrade "${packages_array[$i,0]}==${packages_array[$i,1]}"
8486
else
87+
echo -e "\n${packages_array[$i,0]} : ${packages_array[$i,1]} < ${packages_array[$i,3]}"
8588
echo -e "\nInstalling ${packages_array[$i,0]} using conda channel"
8689
conda install "${packages_array[$i,0]}==${packages_array[$i,3]}"
8790
fi

0 commit comments

Comments
 (0)