diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-09-22 08:48:26 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-09-22 09:00:38 +0200 |
commit | 001ccd6e3e1ac673b67eb68f9a4b67559506607b (patch) | |
tree | 601e3294dcb9f1c3f20dd1d1e9bc4f86771fdad7 /metadata | |
parent | dev-db/postgresql: 13_rc1 (diff) | |
download | gentoo-001ccd6e3e1ac673b67eb68f9a4b67559506607b.tar.gz gentoo-001ccd6e3e1ac673b67eb68f9a4b67559506607b.tar.bz2 gentoo-001ccd6e3e1ac673b67eb68f9a4b67559506607b.zip |
install-qa-check.d: Fix reporting integrity-errors in DUS check
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'metadata')
-rw-r--r-- | metadata/install-qa-check.d/60distutils-use-setuptools | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/metadata/install-qa-check.d/60distutils-use-setuptools b/metadata/install-qa-check.d/60distutils-use-setuptools index 6581b5dab09c..cc3434f586c7 100644 --- a/metadata/install-qa-check.d/60distutils-use-setuptools +++ b/metadata/install-qa-check.d/60distutils-use-setuptools @@ -5,6 +5,8 @@ # Maintainer: Python project <python@gentoo.org> get_expected_distutils_use_setuptools() { + [[ ${integrity_error_new} ]] && return 1 + local sitedir=${D}$(python_get_sitedir) local egg new_expected while read -d $'\0' -r egg; do @@ -24,7 +26,8 @@ get_expected_distutils_use_setuptools() { fi if [[ ${expected} && ${new_expected} != ${expected} ]]; then - expected=integrity-error + integrity_error_new=${new_expected} + return 1 else expected=${new_expected} fi @@ -39,13 +42,13 @@ distutils_use_setuptools_check() { # pyproject.toml is verified by using it [[ ${DISTUTILS_USE_SETUPTOOLS} == pyproject.toml ]] && return - local expected + local expected integrity_error_new _distutils-r1_run_foreach_impl get_expected_distutils_use_setuptools - if [[ ${expected} == integrity-error ]]; then + if [[ ${integrity_error_new} ]]; then eerror "DISTUTILS_USE_SETUPTOOLS integrity error!" eerror "expected was: ${expected}" - eerror "new_expected is: ${new_expected}" + eerror "new_expected is: ${integrity_error_new}" eerror "Please report a bug about this and CC python@" elif [[ ${DISTUTILS_USE_SETUPTOOLS} != ${expected} ]]; then local def= |