Commit Graph

14 Commits (07cd13e757359e955870155135366a290d95bb3e)

Author SHA1 Message Date
Alexander Larsson 07cd13e757 Add copyright headers 2015-03-23 12:17:58 +01:00
Alexander Larsson 88c5c65e2d Use cleanup macros from libglnx 2015-03-20 16:36:17 +01:00
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 e2fdfc531c Track which branch of an app is current
When installed a branch is made current, and we list this in list-apps.
This means nothing atm, but will be used to limit exports to the current
branch of an app.
2015-03-10 16:26:51 +01:00
Alexander Larsson e055d84285 uninstal: Fix the cleanup of empty dirs 2015-03-10 16:25:21 +01:00
Alexander Larsson b9e09e6df3 Remove old code handling per-app data
We no longer store the per-app data in the xdg-app dir.
2015-03-10 10:38:09 +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 4903fe100d Remove unused removed dirs after install/uninstall 2015-02-05 22:50:38 +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 6d3d397142 Make the BRANCH argument optional
This is more in line with the install commands, where we
also default to "master".
2015-01-16 19:16:07 -05:00
Matthias Clasen c92a2635a8 Improve the uninstall commands
Undeploy all deployed commits, remove the ref from the repo,
and prune unowned objects from the repository.
2015-01-16 18:58:50 -05:00
Matthias Clasen fbba6f4f6d Add uninstall-runtime and uninstall-app commands 2015-01-16 00:48:57 -05:00