Skip to content

Commit

Permalink
getname: Handle None remotepkgs
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/948643
Signed-off-by: Zac Medico <[email protected]>
  • Loading branch information
zmedico committed Jan 24, 2025
1 parent 99d8bde commit 04bb5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/portage/dbapi/bintree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,7 @@ def getname_build_id(self, cpv, allocate_new=None, remote_binpkg_format=None):
path = self._pkg_paths.get(instance_key)
if path is not None:
filename = os.path.join(self.pkgdir, path)
elif instance_key in self._remotepkgs:
elif self._remotepkgs and instance_key in self._remotepkgs:
remote_metadata = self._remotepkgs[instance_key]
location = self.get_local_repo_location(cpv)
if location:
Expand Down

0 comments on commit 04bb5cc

Please sign in to comment.