Commit 1e2c8d0b authored by Alexandru Băluț's avatar Alexandru Băluț Committed by Thibault Saunier

flatpak: Fix is_installed for sub packages

parent e7d54f7a
......@@ -307,12 +307,19 @@ class FlatpakPackage(FlatpakObject):
# Bundle installed from file
return True
self.repo.repos.update()
for package in self.repo.repos.packages:
if package.name == self.name and \
package.arch == self.arch and \
package.branch == self.branch:
if len(self.name.split(".")) <= 3:
self.repo.repos.update()
for package in self.repo.repos.packages:
if package.name == self.name and \
package.arch == self.arch and \
package.branch == self.branch:
return True
else:
try:
self.flatpak("info", self.name)
return True
except subprocess.CalledProcessError:
return False
return False
......
  • This didn't fix anything here, sourcing pitivi-env leads to it trying to install org.gnome.Local each and every time, reverting fixes that issue.

  • flatpak info fails when there are multiple versions installed and no branch is specified on the command line. Making a fix..

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment