Alexander Larsson
978e3cd2b4
Merge pull request #20 from matthiasclasen/repo-contents
...
A command for listing available apps and runtimes
2015-01-16 21:23:30 +01:00
Matthias Clasen
5df6316842
Sort repo-contents output
2015-01-16 14:28:54 -05:00
Matthias Clasen
597046e78f
Shorten some options of the repo-contents command
...
Make the options just --apps and --runtimes. Less typing.
2015-01-16 14:11:22 -05:00
Matthias Clasen
da22eece64
Fix a pervasive typo in the docs
...
Every single man page had an instance of 'dxg' in it.
Damn you, copy-paste!
2015-01-16 14:02:16 -05:00
Matthias Clasen
d137ca16c6
Rename make-repo to build-export
...
This is more in line with the other build commands.
2015-01-16 13:59:34 -05:00
Matthias Clasen
08d06ddf00
Use a commit filter in make-repo
...
We only import the following:
- everything below files/
- everything below export/
- the metadata file
This conveniently takes care of keeping the built-time var/ out
of the repo, and prevents other crap from creeping in.
2015-01-16 13:53:36 -05:00
Alexander Larsson
5e6597aa31
Properly export desktop files
...
This makes a copy of all .desktop files and removes all TryExec lines
and converts all Exec lines to use xdg-app run.
2015-01-16 18:46:08 +01:00
Matthias Clasen
481908cc41
make-repo: Deal with repo location in a smarter way
...
When an empty directory is passed as repo location, create
a repo there. For non-empty directories, we still assume that
they are existing repositories.
2015-01-16 11:41:32 -05:00
Matthias Clasen
8ba180fe74
make-repo: Rename the REPO arg
...
Calling it LOCATION makes it less likely to be confused with
the name of a remote.
2015-01-16 11:28:16 -05:00
Matthias Clasen
842ba6a649
Drop the --arch option for make-reop
...
We can determine the arch from the metadata.
2015-01-16 11:24:05 -05:00
Matthias Clasen
3b92f28eea
Don't remove var in build-finish
...
We'll filter it out when committing, instead.
2015-01-16 11:03:10 -05:00
Matthias Clasen
2630d8bda3
Add an --allow option to build-finish
...
Change the default [Environment] that is written to be all locked up.
The --allow option can be used multiple times, to override specific
keys to be more permissive.
2015-01-16 11:01:27 -05:00
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