return res;
}
+#else /* HAVE_COMPOSEFS */
+
+static gboolean
+composefs_not_supported (GError **error)
+{
+ g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
+ "composefs is not supported in this ostree build");
+ return FALSE;
+}
+
#endif
/**
return TRUE;
#else
- g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
- "Composeefs is not supported in this ostree build");
- return FALSE;
+ return composefs_not_supported (error);
#endif
}
return node;
}
-#endif
+
+#endif /* HAVE_COMPOSEFS */
/**
* ostree_repo_checkout_composefs:
return TRUE;
#else
- g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
- "Composeefs is not supported in this ostree build");
- return FALSE;
+ return composefs_not_supported (error);
#endif
}
error))
return FALSE;
#else
- return glnx_throw (error, "composefs required, but libostree compiled without support");
+ return composefs_not_supported (error);
#endif
}