Matthias Clasen
123b0f34d4
Add a --command option to build-finish
...
Preserve an existing command key, unless --command is explicitly
specified. And only go hunting for executables if we don't have
a command.
2015-01-16 10:35:47 -05:00
Matthias Clasen
fadd68e4e2
Use gs_shutil_cp_a for collecting exports
...
This saves some code - the downside is that we can only run
build-finish once, since cp_a errors out on existing directories.
2015-01-16 10:01:15 -05:00
Matthias Clasen
1f8c1a8201
Drop the unused --arch option
2015-01-16 08:30:37 -05:00
Alexander Larsson
3f4b764680
build: Unset ACLOCAL_FLAGS
...
This avoids picking up unexpected things
2015-01-16 10:17:39 +01:00
Alexander Larsson
9eafe24687
xdg-helper: Fix recursive mounts of other root dirs
2015-01-16 10:08:25 +01:00
Alexander Larsson
42971313b8
Merge pull request #19 from matthiasclasen/master
...
Clarify help output
2015-01-16 08:56:53 +01:00
Matthias Clasen
2eed118510
Document the uninstall-app and uninstall-runtime commands
2015-01-16 00:59:27 -05:00
Matthias Clasen
fbba6f4f6d
Add uninstall-runtime and uninstall-app commands
2015-01-16 00:48:57 -05:00
Matthias Clasen
4490029880
Make repo-contents operate on a single repo
...
This is more in line with the other commands.
2015-01-15 23:42:48 -05:00
Matthias Clasen
d112b320b2
Document the repo-contents command
2015-01-15 23:30:17 -05:00
Matthias Clasen
4cec1e3934
Add a repo-contents command
...
This can show available runtimes and applications.
2015-01-15 23:25:03 -05:00
Matthias Clasen
24901067fa
Clarify help output
...
We might add commands to list available runtimes and applications,
so clarify that list-runtimes/list-apps list installed ones.
2015-01-15 21:46:51 -05:00
Matthias Clasen
14be30cc11
Add a forgotten -v option to the build-finish docs
...
This was overlooked when copy-pasting the option
docs from build-init (which is the only command where
-v is not the short option for --verbose).
2015-01-15 21:00:59 -05:00
Matthias Clasen
067e95fcfd
Document the make-repo command
2015-01-15 20:59:56 -05:00
Matthias Clasen
23baa46371
Add a make-repo command
...
This can take a finalized build directory and create an
ostree repo from it.
2015-01-15 20:06:11 -05:00
Matthias Clasen
47873497bf
Document the build-finish command
2015-01-15 17:41:58 -05:00
Matthias Clasen
85670c632f
Add a build-finish command
...
This command collects likely files to export, adds the command
key and [Environment] to the metadata, and removes the var/
directory.
2015-01-15 17:31:29 -05:00
Alexander Larsson
daf41bab9c
Add triggers for exports
...
This runs the triggers in a read-only environment to update things
like desktop file databases, icon caches and mimeinfo databases.
2015-01-15 21:45:55 +01:00
Alexander Larsson
2fd90ae415
Allow mounting host fs, but readonly (with -F)
2015-01-15 21:45:55 +01:00
Alexander Larsson
258ca0b9d9
Add support for readonly app with writable "exports" subdir
...
This will be used for the triggers
2015-01-15 21:45:55 +01:00
Alexander Larsson
66e889dc79
Add system mode where /usr is the runtime
...
This is useful to run triggers in a slightly sandboxed environment
2015-01-15 21:45:55 +01:00
Alexander Larsson
bd6436e154
Add manpages to gitignore
2015-01-15 21:45:55 +01:00
Alexander Larsson
fb6238347a
Merge pull request #14 from matthiasclasen/list-runtimes
...
Commands to list applications and runtimes
2015-01-15 20:09:20 +01:00
Matthias Clasen
60e6b99f53
Update example in list-runtimes docs
2015-01-15 13:58:56 -05:00
Matthias Clasen
b50d64914b
Incorporate review comments
...
Use g_file_get_child instead of g_file_resolve_relative_path
in a few places, and reduce the scope of some variables.
2015-01-15 13:57:27 -05:00
Alexander Larsson
cc92b892fe
Merge pull request #16 from matthiasclasen/list-repos2
...
List repos2
2015-01-15 16:02:20 +01:00
Matthias Clasen
f7ff733071
Document list-repos command
2015-01-15 06:13:49 -05:00
Matthias Clasen
3759de6e7f
Add a list-repos command
...
This is very similar to the ostree remote list command.
2015-01-15 06:12:08 -05:00
Alexander Larsson
c763716c6a
Fix typo in docs s/-remo/-repo/
2015-01-15 09:15:15 +01:00
Alexander Larsson
79a9753b96
Merge pull request #15 from matthiasclasen/error-handling
...
Some error handling fixes for the run command. I just tried to put
2015-01-15 09:14:05 +01:00
Alexander Larsson
c453f1643b
Merge pull request #12 from matthiasclasen/usage-error
...
Avoid many copies of usage_error function
2015-01-15 09:12:49 +01:00
Alexander Larsson
b8c3e45b3c
Merge pull request #11 from matthiasclasen/double-dot
...
Fix a typo
2015-01-15 09:12:20 +01:00
Alexander Larsson
b1ebfab22a
Merge pull request #10 from matthiasclasen/delete-repo-docs
...
Document the delete-repo command
2015-01-15 09:12:03 +01:00
Alexander Larsson
0d13e2c5e1
Merge pull request #9 from matthiasclasen/run-help
...
Improve --branch help text for the run comment
2015-01-15 09:10:47 +01:00
Alexander Larsson
97a503ecf5
Merge pull request #8 from matthiasclasen/run-docs
...
Complete the documentation for the run command
2015-01-15 09:10:24 +01:00
Matthias Clasen
418ba95ef9
Trivial spelling fix
2015-01-14 22:41:56 -05:00
Matthias Clasen
dac709ef1d
Handle exec error correctly
...
exec(1) states that exec will only return in case of an error,
and the return value is -1. Therefore, if (!execv(...)) doesn't
make sense.
2015-01-14 22:37:54 -05:00
Matthias Clasen
77a3259083
Don't ignore lack of command key
...
We were ignoring the error if command is missing or defective,
and could end up in a situation where neither opt_command nor
default_command are set, causing us to pass NULL into execve
for an unexpected shell. Fix that.
2015-01-14 22:16:56 -05:00
Matthias Clasen
85288750e6
Prevent an error pileup
...
Unfortunately, g_key_file_get_string can set error and still
return non-NULL (e.g if the value contains unsupported escape
sequences).
2015-01-14 22:11:19 -05:00
Matthias Clasen
6947034c8e
Document the list-apps command
2015-01-14 21:39:13 -05:00
Matthias Clasen
c1e19dab8e
Simplify the list-app/runtime output
...
Show the triples in the same format in which they appear in
metadata files: name/arch/branch.
2015-01-14 21:34:59 -05:00
Matthias Clasen
778071f9ba
Add a list-apps command
2015-01-14 21:31:39 -05:00
Matthias Clasen
04260718e4
Factor out the printing code into separate functions
...
We will reuse this for listing applications in the future.
2015-01-14 21:25:37 -05:00
Matthias Clasen
c12b71dc36
Document the list-runtimes command
2015-01-14 21:08:02 -05:00
Matthias Clasen
459e15a820
Add a list-runtimes command
...
This allows to list the installed runtimes, optionally showing
arches and branches in addition to names.
2015-01-14 20:56:25 -05:00
Matthias Clasen
e295608165
Avoid many copies of usage_error function
...
No need to have the identical static function in every
builtin command.
2015-01-14 18:49:34 -05:00
Matthias Clasen
c2b7ac0615
Fix a typo
2015-01-14 18:29:57 -05:00
Matthias Clasen
689ba7b5a3
Document the delete-repo command
2015-01-14 18:27:30 -05:00
Matthias Clasen
ebc9772f04
Complete the documentation for the run command
...
This was missing some of the options.
2015-01-14 18:26:50 -05:00
Matthias Clasen
e237b3525e
Improve --branch help text for the run comment
...
This was clearly a copy-paste error.
2015-01-14 18:26:11 -05:00