Skip to content

Commit e574041

Browse files
committed
backends/eopkg: Emit release as part of packageid version in _pkg_to_id
We accidentally didn't append the package release as part of the package id version in _pkg_to_id causing package id mismatches E.g. - resolve() would emit 0ad;0.28.0-62;x86_64;Unstable - _pkg_to_id() would emit 0ad;0.28.0;x86_64;Unstable This fixes package id mismatches in the callback system which incidentally also fixes gnome-software not always displaying progress bars to the user.
1 parent b5c1b1a commit e574041

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backends/eopkg/eopkgBackend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ def _pkg_to_id(self, pkg):
291291
repo = "installed"
292292
else:
293293
repo = "local"
294-
pkg_id = self.get_package_id(pkg.name, pkg.version, pkg.architecture, repo)
294+
version = self.__get_package_version(pkg)
295+
pkg_id = self.get_package_id(pkg.name, version, pkg.architecture, repo)
295296
return pkg_id
296297

297298
def _get_package_obj_from_id(self, package_id):

0 commit comments

Comments
 (0)