Skip to content

Commit

Permalink
update pip_updates function suppress warning display in 123.09beta01
Browse files Browse the repository at this point in the history
for yum removal of python2-psutil yum package suppress any warning messages https://community.centminmod.com/threads/when-running-centmin-i-got-this-deprecation-python-2-7.16485/#post-70288
  • Loading branch information
centminmod committed Jan 25, 2019
1 parent cba74b8 commit 8dc4416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/cpcheck.inc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pip_updates() {
if [[ "$CHECK_PSUTILUPDATE" = 'psutil' ]]; then
export CC='gcc'
if [[ "$(rpm -qa python2-psutil | grep -o python2-psutil)" = 'python2-psutil' ]]; then
yum -q -y remove python2-psutil
yum -q -y remove python2-psutil >/dev/null 2>&1
fi
PYTHONWARNINGS=ignore:::pip._internal.cli.base_command pip install -qqq --upgrade psutil
fi
Expand Down

0 comments on commit 8dc4416

Please sign in to comment.