diff options
author | 2024-03-02 14:48:54 -0800 | |
---|---|---|
committer | 2024-03-02 14:50:54 -0800 | |
commit | 62ee9bf8c680b2a18713da5bd453e3a771257409 (patch) | |
tree | d6039d182ab0b370266dc1c19a409a7cbf107040 /lib | |
parent | doebuild: Call _setup_locale (diff) | |
download | portage-62ee9bf8c680b2a18713da5bd453e3a771257409.tar.gz portage-62ee9bf8c680b2a18713da5bd453e3a771257409.tar.bz2 portage-62ee9bf8c680b2a18713da5bd453e3a771257409.zip |
binarytree._populate_remote: Fix UnboundLocalError for binpkg-request-signature
If an InvalidBinaryPackageFormat exception was raised from
get_binpkg_format for binpkg-request-signature then it
triggered an UnboundLocalError here.
Fixes: 445f10f4214c ("Use binpkg extensions and header to get format")
Bug: https://bugs.gentoo.org/926048
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portage/dbapi/bintree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/portage/dbapi/bintree.py b/lib/portage/dbapi/bintree.py index f4251b47d..4ba1407cd 100644 --- a/lib/portage/dbapi/bintree.py +++ b/lib/portage/dbapi/bintree.py @@ -1624,7 +1624,7 @@ class binarytree: binpkg_format = get_binpkg_format( d.get("PATH"), remote=True ) - except InvalidBinaryPackageFormat: + except InvalidBinaryPackageFormat as e: writemsg( colorize( "WARN", |