Commit Graph

67 Commits (3759de6e7ffc6f922eb2c7689b40ab6a521d633f)
 

Author SHA1 Message Date
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 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
Alexander Larsson 92f23cbde2 Merge pull request #4 from matthiasclasen/delete-repo
Delete repo
2015-01-14 10:28:59 +01:00
Alexander Larsson 2be077b9d2 Merge pull request #5 from matthiasclasen/no-help-errors
No help errors
2015-01-14 10:27:36 +01:00
Alexander Larsson d3f0182452 Merge pull request #6 from matthiasclasen/arg-help
Arg help
2015-01-14 10:27:11 +01:00
Alexander Larsson 7bb9dbc9af Merge pull request #7 from matthiasclasen/docs
Docs
2015-01-14 10:26:25 +01:00
Matthias Clasen 2232a6d066 Add man pages 2015-01-14 01:38:49 -05:00
Matthias Clasen 1a8e40657a Add an argument name to --arch and similar options
This makes the help text more accurate, and helpful.
2015-01-14 00:47:59 -05:00
Matthias Clasen 93de27256d Avoid error for build --help
Those errors are so scary and red, don't show them to somebody
asking for help.
2015-01-13 21:40:33 -05:00
Matthias Clasen 20a0917306 Add a delete-repo command
A natural counterpart to add-repo.
2015-01-13 21:06:07 -05:00
Matthias Clasen 64fc43101d run: don't print error with for --help
This follows what all the other builtins do: first parse the
commandline, then error out if we got too few arguments.
2015-01-13 19:54:19 -05:00
Alexander Larsson f1c3b1e988 Merge pull request #2 from vrutkovs/jhbuild-hook
Use sudo and DESTDIR in install-exec-hook
2015-01-13 21:49:37 +01:00
Vadim Rutkovsky 4720d889f8 Use sudo only if --enable-sudo is passed 2015-01-13 14:56:14 +01:00
Vadim Rutkovsky ad1914a912 Use sudo and DESTDIR in install-exec-hook
This will allow installing the app via jhbuild
2015-01-13 13:40:21 +01:00
Alexander Larsson ab27b589f0 run: Fix possible free of static string 2015-01-13 13:06:37 +01:00
Alexander Larsson eedc570a8a Use new ostree_repo_pull_default_console_progress_changed, 2015-01-12 16:49:06 +01:00
Alexander Larsson 0d78d22adb Use gs_dirfd_iterator for xdg_app_remove_dangling_symlinks 2015-01-12 16:44:47 +01:00
Alexander Larsson b8c29f18ae Use the new gs_dirfd_iterator api in symlink_tree 2015-01-12 16:30:59 +01:00
Alexander Larsson 206bf95fa3 Use the new gs_set_error_from_errno 2015-01-12 15:40:26 +01:00
Alexander Larsson 038342cec5 Use the new gs_unref_keyfile define 2015-01-12 15:31:48 +01:00
Alexander Larsson 3b1893aaaf Require latest ostree/libgsystem
This allows us to clean up some code and get the new static delta
support.
2015-01-12 15:31:12 +01:00
Alexander Larsson cf9713e9c4 Clean up dangling exported symlinks on deploy. 2015-01-12 08:50:09 +01:00
Alexander Larsson 15642f471d Add xdg_app_remove_dangling_symlinks helper 2015-01-12 08:50:09 +01:00
Alexander Larsson 0c28aab49a Explode exports on deploy 2015-01-12 08:50:09 +01:00
Alexander Larsson e2c8d59316 Add xdg_app_overlay_symlink_tree helper
This will be used during exports
2015-01-12 08:50:09 +01:00
Alexander Larsson 721abb5375 Set a few standard env vars when running apps
This sets PATH, and XDG_DATA_DIRS, and unsets any LD_LIBRARY_PATH
from the host env.
2015-01-12 08:50:09 +01:00
Alexander Larsson 5747018d6e Add build builtin 2015-01-12 08:50:09 +01:00
Alexander Larsson 77d15d7ab0 Move some run setup code into helpers
This moves the specialized code for things like X11/dbus/pulse to
separate helpers.
2015-01-12 08:50:09 +01:00
Alexander Larsson 734ca13f82 Add and use xdg_app_find_deploy_dir_for_ref helper 2015-01-12 08:50:09 +01:00
Alexander Larsson 5f36dda947 Add build-init builtin 2015-01-12 08:50:09 +01:00
Alexander Larsson aeed349428 Fix warnings 2015-01-12 08:50:09 +01:00
Alexander Larsson ed4aae8cf7 Use bare-user for user repo 2015-01-12 08:49:43 +01:00
Alexander Larsson 6dcb309073 Merge pull request #1 from chergert/master
includes: fix build warning
2014-12-21 09:14:21 +01:00
Christian Hergert 332cf5c39e includes: fix build warning 2014-12-20 19:27:55 -08:00
Alexander Larsson 3a2eb66888 change name on "latest" symlink to "active" 2014-12-19 11:21:47 +01:00