Adds debug codes

pull/7054/head
gindibay 2023-07-12 20:29:58 +03:00
parent f46b58ae27
commit faa394d709
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
set -e set -eo
# Function to get the OS version # Function to get the OS version
get_os_version() { get_os_version() {
@ -28,6 +28,9 @@ pyenv activate packaging_env
git clone -b error_add --depth=1 https://github.com/citusdata/tools.git tools git clone -b error_add --depth=1 https://github.com/citusdata/tools.git tools
python3 -m pip install -r tools/packaging_automation/requirements.txt python3 -m pip install -r tools/packaging_automation/requirements.txt
echo "Package type: ${package_type}"
echo "OS version: $(get_os_version)"
# if os version is centos 7 or oracle linux 7, then remove urllib3 with pip uninstall and install urllib3<2.0.0 with pip install # if os version is centos 7 or oracle linux 7, then remove urllib3 with pip uninstall and install urllib3<2.0.0 with pip install
if [[ ${package_type} == "rpm" && $(get_os_version) == 7* ]]; then if [[ ${package_type} == "rpm" && $(get_os_version) == 7* ]]; then
python3 -m pip uninstall -y urllib3 python3 -m pip uninstall -y urllib3