commit:     66c00b2e3d72bc8947fc802b0403687853e16e13
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 17 06:18:25 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 17 06:20:16 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=66c00b2e

emerge-webrsync: add fallback error case

This would've helped avoid a loop where we keep trying old snapshots
if gemato wasn't installed. We already have a fix for that separately
with a more specific error, but a fallback is good for unexpected ones.

Bug: https://bugs.gentoo.org/905868
Closes: https://github.com/gentoo/portage/pull/1039
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/emerge-webrsync | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync
index e707f8b9b..7fed4e790 100755
--- a/bin/emerge-webrsync
+++ b/bin/emerge-webrsync
@@ -361,6 +361,11 @@ check_file_signature() {
                                r=$?
                                ;;
                esac
+
+               if [[ ${r} != 0 ]] ; then
+                       eerror "Error occurred in check_file_signature: ${r}. 
Aborting."
+                       die "Verification error occured."
+               fi
        else
                r=0
        fi

Reply via email to