Skip to content

Commit 1ffd6f3

Browse files
committed
pkgsign error
1 parent 6ab0545 commit 1ffd6f3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

conan/cli/commands/cache.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,18 @@
1212

1313

1414
def _get_package_sign_error(pkg_list):
15-
signs = []
15+
conan_exception = ConanException("There were some errors in the package signing process. "
16+
"Please check the output.")
1617
for rref, packages in pkg_list.items():
1718
recipe_bundle = pkg_list.recipe_dict(rref)
1819
if recipe_bundle:
19-
signs.append(recipe_bundle.get("pkgsign_error"))
20+
if recipe_bundle.get("pkgsign_error"):
21+
return conan_exception
2022
for pref in packages:
2123
pkg_bundle = pkg_list.package_dict(pref)
2224
if pkg_bundle:
23-
signs.append(pkg_bundle.get("pkgsign_error"))
24-
25-
if any((sign is not None) for sign in signs):
26-
return ConanException("There were some errors in the package signing process. "
27-
"Please check the output.")
25+
if pkg_bundle.get("pkgsign_error"):
26+
return conan_exception
2827
return None
2928

3029

0 commit comments

Comments
 (0)