From 853f763a7e0b9779cd01cc3def726780a9ca94d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 10 Jun 2019 14:50:04 +0200 Subject: [PATCH] Remove a redundant second WARNING prefix form the root warning It is added automatically since 19.1. --- emit-a-warning-when-running-with-root-privileges.patch | 2 +- python-pip.spec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/emit-a-warning-when-running-with-root-privileges.patch b/emit-a-warning-when-running-with-root-privileges.patch index 9692abc..0c61734 100644 --- a/emit-a-warning-when-running-with-root-privileges.patch +++ b/emit-a-warning-when-running-with-root-privileges.patch @@ -27,7 +27,7 @@ index 1279d4a..aeb9d26 100644 + if command == "__main__.py": + command = path.basename(sys.executable) + " -m pip" + logger.warning( -+ "WARNING: Running pip install with root privileges is " ++ "Running pip install with root privileges is " + "generally not a good idea. Try `%s install --user` instead." + % command + ) diff --git a/python-pip.spec b/python-pip.spec index f9b44c1..dfdf6a7 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -495,6 +495,7 @@ ln -sf %{buildroot}%{_bindir}/pip3 _bin/pip %changelog * Mon Jun 10 2019 Miro Hrončok - 19.1.1-2 - Fix root warning when pip is invoked via python -m pip +- Remove a redundant second WARNING prefix form the abovementioned warning * Wed May 15 2019 Miro Hrončok - 19.1.1-1 - Update to 19.1.1 (#1706995)