Changeset - 2c7d060149b1
[Not reviewed]
0 1 0
Branko Majic (branko) - 5 years ago 2019-08-14 18:56:26
branko@majic.rs
MAR-145: Use --quiet option to supress extra output from the pip-compile command instead of redirecting to /dev/null.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
roles/common/files/pip_check_requirements_upgrades.sh
Show inline comments
 
@@ -201,7 +201,7 @@ if [[ ${#@} == 0 ]]; then
 
    exit "$ERROR_ARGUMENTS"
 
fi
 

	
 
# Verfiy positional arguments.
 
# Verify positional arguments.
 
config_dir="$1"
 
if [[ ! -d $config_dir ]]; then
 
    error "No such directory: $config_dir"
 
@@ -254,7 +254,7 @@ for environment in "$config_dir"/*; do
 

	
 
	# Deploy the existing requirements file and the new one.
 
	sed -e 's/[[:blank:]]*#.*//' "$req_txt" | grep -v "^$" | sort -u > "$tmp_current" 
 
	if ! pip-compile --allow-unsafe --no-header --no-annotate --no-index --output-file "$tmp_new" --upgrade "$req_in" > /dev/null; then
 
	if ! pip-compile --quiet --allow-unsafe --no-header --no-annotate --no-index --output-file "$tmp_new" --upgrade "$req_in"; then
 
	    error "Failed while running pip-compile command against (see error stack trace above): $req_in"
 
	    continue
 
	fi
0 comments (0 inline, 0 general)