From da326d602d4164d57402aebd56e3101070cba0f9 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Sun, 2 Jul 2023 21:54:27 -0400 Subject: [PATCH] pypi: improve error message Emphasize that we're failing because the user tried to update a non-PyPI package by version, when only PyPI packages can be updated by version. Other Python packages need to be updated by a full URL change. Signed-off-by: William Woodruff --- Library/Homebrew/utils/pypi.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/pypi.rb b/Library/Homebrew/utils/pypi.rb index 7a5228ae17..846a39048c 100644 --- a/Library/Homebrew/utils/pypi.rb +++ b/Library/Homebrew/utils/pypi.rb @@ -237,7 +237,8 @@ module PyPI else return if ignore_non_pypi_packages - odie "The main package is not a PyPI package. Please update its URL manually." + odie "The main package is not a PyPI package, meaning that version-only updates cannot be \ + performed. Please update its URL manually." end end