[gnome-software] flatpak: Remove ifdefs for flatpak versions older than 1.0.4



commit 5273a22fbc7e5b57e3593bb0e1a4a4f09afd1d3e
Author: Kalev Lember <klember redhat com>
Date:   Mon Mar 4 12:52:38 2019 +0100

    flatpak: Remove ifdefs for flatpak versions older than 1.0.4
    
    ... and bump the minimum required version accordingly.

 meson.build                              | 2 +-
 plugins/flatpak/gs-flatpak-transaction.c | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index b4a93d88..0796b6a1 100644
--- a/meson.build
+++ b/meson.build
@@ -154,7 +154,7 @@ if get_option('fwupd')
 endif
 
 if get_option('flatpak')
-  flatpak = dependency('flatpak', version : '>= 0.99.3')
+  flatpak = dependency('flatpak', version : '>= 1.0.4')
 endif
 
 if get_option('rpm_ostree')
diff --git a/plugins/flatpak/gs-flatpak-transaction.c b/plugins/flatpak/gs-flatpak-transaction.c
index 3ed94e5b..9d5d4a36 100644
--- a/plugins/flatpak/gs-flatpak-transaction.c
+++ b/plugins/flatpak/gs-flatpak-transaction.c
@@ -226,9 +226,7 @@ _transaction_new_operation (FlatpakTransaction *transaction,
 static void
 _transaction_operation_done (FlatpakTransaction *transaction,
                             FlatpakTransactionOperation *operation,
-#if FLATPAK_CHECK_VERSION(1,0,4)
                             const gchar *commit,
-#endif
                             FlatpakTransactionResult details)
 {
        /* invalidate */


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