From 712fc9fc081a5cbaf150624b0d5ce15b7ea18849 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 12 May 2016 16:48:10 +0200 Subject: Use the installed/not-installed errors more consequently --- app/flatpak-builtins-install.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/flatpak-builtins-install.c b/app/flatpak-builtins-install.c index 1034dac..f1500e7 100644 --- a/app/flatpak-builtins-install.c +++ b/app/flatpak-builtins-install.c @@ -32,6 +32,7 @@ #include "flatpak-builtins.h" #include "flatpak-utils.h" +#include "lib/flatpak-error.h" #include "flatpak-chain-input-stream.h" static char *opt_arch; @@ -237,7 +238,7 @@ flatpak_builtin_install (int argc, char **argv, GCancellable *cancellable, GErro return flatpak_fail (error, "%s %s, branch %s is already installed", is_app ? "App" : "Runtime", name, branch ? branch : "master"); - if (!g_error_matches (my_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) + if (!g_error_matches (my_error, FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED)) { g_propagate_error (error, g_steal_pointer (&my_error)); return FALSE; -- cgit v1.2.1