bin/commit: Fix build failure when libarchive is not used
authoryceh <31328757+yceh@users.noreply.github.com>
Mon, 18 Sep 2017 13:10:52 +0000 (13:10 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 18 Sep 2017 13:15:20 +0000 (13:15 +0000)
A `"}"` at line 641 is missing when `HAVE_LIBARCHIVE` is not defined
(even though probably few will use ostree without libarchive).

Closes: #1181
Approved by: jlebon

src/ostree/ot-builtin-commit.c

index 3b9e3630ee9212ef41fa37a11ad984152adcf4a5..eb5e99b042771147e10eaae805fbf763c984e96d 100644 (file)
@@ -631,12 +631,12 @@ ostree_builtin_commit (int argc, char **argv, GCancellable *cancellable, GError
                   if (!ostree_repo_import_archive_to_mtree (repo, &opts, archive, mtree,
                                                             modifier, cancellable, error))
                     goto out;
-                }
 #else
-              g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
-                           "This version of ostree is not compiled with libarchive support");
-              return FALSE;
+                  g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
+                               "This version of ostree is not compiled with libarchive support");
+                  goto out;
 #endif
+                }
             }
           else if (strcmp (tree_type, "ref") == 0)
             {