Skip to content

Commit c2228f3

Browse files
authored
Merge branch 'main' into Release_issue_build_qemu
2 parents e411687 + 7992815 commit c2228f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/anaconda/.devcontainer/apply_security_patches.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# vulnerabilities:
44
# werkzeug - [GHSA-f9vj-2wh5-fj8j]
55

6-
vulnerable_packages=( "mistune=3.0.1" "transformers=4.36.0" "cryptography=43.0.1" "jupyter-lsp=2.2.2" "scrapy=2.11.2" \
6+
vulnerable_packages=( "mistune=3.0.1" "transformers=4.36.0" "cryptography=43.0.3" "jupyter-lsp=2.2.2" "scrapy=2.11.2" \
77
"zipp=3.19.1" "tornado=6.4.2")
88

99
# Define the number of rows (based on the length of vulnerable_packages)
@@ -45,12 +45,12 @@ for ((i=0; i<rows; i++)); do
4545
CONDA_VERSION="0"
4646
fi
4747
GREATER_VERSION_B=$((echo ${REQUIRED_VERSION}; echo ${CONDA_VERSION}) | sort -V | tail -1)
48-
if [[ $CONDA_VERSION == $GREATER_VERSION_B ]]; then
48+
if [[ $CONDA_VERSION == $GREATER_VERSION_B && ${packages_array[$i,0]} != "cryptography" ]]; then
4949
echo -e "Found Version v${CONDA_VERSION} in the Conda channel which is greater than or equal to the required version: v${REQUIRED_VERSION}. \n";
5050
echo "Installing ${packages_array[$i,0]} from source from conda channel for v${REQUIRED_VERSION}..."
51-
conda install "${packages_array[$i,0]}==${CONDA_VERSION}"
52-
elif [[ $REQUIRED_VERSION == $GREATER_VERSION_B ]]; then
53-
echo -e "Required version: v${REQUIRED_VERSION} is greater than the version found in the Conda channel v${CONDA_VERSION}. \n";
51+
conda install "${packages_array[$i,0]}==${CONDA_VERSION}"
52+
elif [[ $REQUIRED_VERSION == $GREATER_VERSION_B || ${packages_array[$i,0]} == "cryptography" ]]; then
53+
echo -e "Required version: v${REQUIRED_VERSION} is greater than the version found in the Conda channel v${CONDA_VERSION} or its cryptography package. \n";
5454
echo "Installing ${packages_array[$i,0]} from source from pip package manager for v${REQUIRED_VERSION}..."
5555
python3 -m pip install --upgrade --no-cache-dir "${packages_array[$i,0]}==${REQUIRED_VERSION}"
5656
fi

0 commit comments

Comments
 (0)