Skip to content

Commit 8c737ba

Browse files
committed
builder-main: Support setting state-dir for run
Fixes #401
1 parent d4312b7 commit 8c737ba

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ TBD
88
* Prevent writing duplicate groups to metadata file
99
* Disable all filesystem access in flatpak-builder --run sandbox
1010
* Add ability to set custom fusermount path
11+
* Support setting state-dir for run
1112

1213
Changes in 1.4.6
1314
================

doc/flatpak-builder.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@
228228
<para>
229229
Only the
230230
<option>--arch=</option><replaceable>ARCH</replaceable>,
231-
<option>--ccache</option> and
232-
<option>--verbose</option> options can be combined
233-
with this option.
231+
<option>--ccache</option>, <option>--verbose</option>
232+
and <option>--state-dir</option><replaceable>PATH</replaceable>
233+
(since 1.4.8) options can be combined with this option.
234234
</para>
235235
</listitem>
236236
</varlistentry>

src/builder-main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ static GOptionEntry run_entries[] = {
156156
{ "log-session-bus", 0, 0, G_OPTION_ARG_NONE, &opt_log_session_bus, N_("Log session bus calls"), NULL },
157157
{ "log-system-bus", 0, 0, G_OPTION_ARG_NONE, &opt_log_system_bus, N_("Log system bus calls"), NULL },
158158
{ "ccache", 0, 0, G_OPTION_ARG_NONE, &opt_ccache, "Use ccache", NULL },
159+
{ "state-dir", 0, 0, G_OPTION_ARG_FILENAME, &opt_state_dir, "Use this directory for state instead of .flatpak-builder", "PATH" },
159160
{ NULL }
160161
};
161162

0 commit comments

Comments
 (0)