mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-24 00:19:19 -04:00
build-finish: Add --no-exports
This commit is contained in:
1 parent
d99c4f6568
commit
3adb84e368
2 files changed
+13
No files matched your search
@@ -34,9 +34,11 @@
|
||||
#include "xdg-app-run.h"
|
||||
|
||||
static char *opt_command;
|
||||
static gboolean opt_no_exports;
|
||||
|
||||
static GOptionEntry options[] = {
|
||||
{ "command", 0, 0, G_OPTION_ARG_STRING, &opt_command, "Command to set", "COMMAND" },
|
||||
{ "no-exports", 0, 0, G_OPTION_ARG_NONE, &opt_no_exports, "Don't process exports" },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
@@ -180,6 +182,9 @@ collect_exports (GFile *base, const char *app_id, GCancellable *cancellable, GEr
|
||||
if (!gs_file_ensure_directory (export, TRUE, cancellable, error))
|
||||
return FALSE;
|
||||
|
||||
if (opt_no_exports)
|
||||
return TRUE;
|
||||
|
||||
for (i = 0; paths[i]; i++)
|
||||
{
|
||||
g_autoptr(GFile) src = NULL;
|
||||
|
||||
@@ -209,6 +209,14 @@
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-exports</option></term>
|
||||
|
||||
<listitem><para>
|
||||
Don't look for exports in the build.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-v</option></term>
|
||||
<term><option>--verbose</option></term>
|
||||
|
||||
Reference in new issue
Block a user