[pitivi/1.0] flatpak: Fix is_installed for subpackages



commit b9fc286a1f7160cc01b62fd7cc7302eff667eb86
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Wed Jul 18 21:44:09 2018 +0200

    flatpak: Fix is_installed for subpackages
    
    flatpak info returns an error if there are multiple versions of the
    subpackage installed, requiring one of them to be specified.

 build/flatpak/pitivi-flatpak | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/build/flatpak/pitivi-flatpak b/build/flatpak/pitivi-flatpak
index 6a595ff6..acb23213 100755
--- a/build/flatpak/pitivi-flatpak
+++ b/build/flatpak/pitivi-flatpak
@@ -329,10 +329,10 @@ class FlatpakPackage(FlatpakObject):
                     return True
         else:
             try:
-                self.flatpak("info", self.name)
+                self.flatpak("info", self.name, self.branch)
                 return True
             except subprocess.CalledProcessError:
-                return False
+                pass
 
         return False
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]