Alexander Larsson
c856556b8a
Convert to g_autoptr
2015-03-20 16:33:18 +01:00
Alexander Larsson
db191015d4
xdg-app-dir: Move exports to update_exports
...
During installation of an app we rewrite and clean up the
deployed export directory, but don't actually export it.
Instead we export only the "current" version of the application
when we run update_exports (passing in which app changed). This way
we ensure that any newly exported files in the current app are exported
before we remove all dangling symlinks.
To make the symlinks properly dangle we also make the export symlinks
point use the "current" and "active" symlinks so non-current deployed
dirs don't keep an old symlink from being removed.
2015-03-11 10:25:18 +01:00
Alexander Larsson
961c3afb1d
Move update_exports out of deploy/undeploy
...
We call this in the builtins rather than the lowlevel deploys,
which lets us call it less times if we're doing multiple deploys
in an operation.
2015-03-10 10:14:12 +01:00
Alexander Larsson
1d2baf96d8
Verify app/runtime names and branches in various operations
...
Whenever we create, install, update, uninstall or run apps we
verify that all app names and branch names are valid.
2015-02-11 12:39:17 +01:00
Alexander Larsson
6ea2391583
During undeploy, keep files around if they are in use
...
We check for a lock on the .ref file to detect if anything
is using a partilular checkout before we remove it.
2015-02-05 22:47:48 +01:00
Matthias Clasen
9a0d3a77fb
Add a --commit option to the update commands
...
This makes it possible to give a specific commit that should be
deployed. If the option is not specified, we still update to the
tip of the branch.
2015-01-16 21:55:48 -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
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
Alexander Larsson
3a2eb66888
change name on "latest" symlink to "active"
2014-12-19 11:21:47 +01:00
Alexander Larsson
6f2a406d12
update: Remove old deployment and prune
2014-12-19 11:18:27 +01:00
Alexander Larsson
3b53ae6489
Add app install/update
2014-12-18 15:26:40 +01:00
Alexander Larsson
3775ae51e2
Add update-runtime
2014-12-18 11:37:30 +01:00