Matthias Clasen
e1207256d0
lib: Fix saving of remote titles
...
We were using the key 'title' in some places, but 'xa.title'
elsewhere. Make it 'xa.title' everywhere. This bug was found
by the new unit tests.
2016-08-01 23:05:38 -04:00
Matthias Clasen
75218c4a65
Fix license headers
...
We were referring to the nonexisting "version 2" of the
Lesser GPL. It should be "version 2.1".
2016-07-29 14:27:49 -04:00
Alexander Larsson
01d4209892
Add some code I used to test the new related refs code.
2016-07-01 10:39:56 +02:00
Alexander Larsson
5da7a0411a
lib: Support listing related refs
2016-07-01 10:32:57 +02:00
Joaquim Rocha
84043767fb
Fix leak in flatpak-installed-ref
...
The latest_commit string needs to be freed.
2016-06-28 13:14:35 +02:00
Alexander Larsson
fa6fb1033f
lib: Add flatpak_get_supported_arches
2016-06-23 11:05:49 +02:00
Simon McVittie
2e729aacab
lib: do not distribute generated files in tarball
...
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-06-12 10:35:13 +01:00
Alexander Larsson
1ddd173507
lib: Fix NOT_INSTALLED error when updating
2016-06-09 12:04:45 +02:00
Alexander Larsson
1bebedea8a
lib: Add install/update_full() versions that allow you to specify subpaths
...
Also, we add a (yet unused) flags field for installation if we
want to extend this in the future.
2016-06-08 09:26:31 +02:00
Alexander Larsson
bfe20c246e
lib: Better checking for pre-existing installs
...
We don't just check for a deploy dir, because it may exist from
a failed install.
2016-06-08 09:25:40 +02:00
Alexander Larsson
cfef57e343
Properly handle subpaths on update
2016-06-07 22:12:51 +02:00
Alexander Larsson
8ef84cc3d1
Move shared bundle install code to flatpak_dir_install_bundle
2016-06-03 14:30:25 +02:00
Josh Soref
c0574db1a8
spelling: elapsed
2016-05-27 06:42:21 +00:00
Josh Soref
ddc021911c
spelling: common
2016-05-27 06:38:44 +00:00
Alexander Larsson
958a4b45a7
lib: Fix order of ref/remote in update call
2016-05-20 14:29:54 +02:00
Bastien Nocera
313d5fb2d3
lib: Fix compilation warnings
...
lib/flatpak-installation.c: In function ‘flatpak_installation_modify_remote’:
lib/flatpak-installation.c:738:12: warning: return makes integer from pointer without a cast [-Wint-conversion]
return NULL;
^~~~
lib/flatpak-installation.c: In function ‘flatpak_installation_remove_remote’:
lib/flatpak-installation.c:773:12: warning: return makes integer from pointer without a cast [-Wint-conversion]
return NULL;
^~~~
2016-05-18 13:48:23 +02:00
Alexander Larsson
dcd8d85900
lib: Make flatpak_installation_drop_caches return TRUE on success
2016-05-17 12:09:32 +02:00
Matthias Clasen
fab3e4b991
Document new FlatpakInstallation api
2016-05-16 21:25:48 -04:00
Matthias Clasen
d30ef7c602
Document FlatpakBundleRef apis
2016-05-16 19:50:30 -04:00
Matthias Clasen
d784322f4e
Fix a doc comment typo
...
Tis was causing the docs for flatpak_remote_get_disabled not
to be picked up.
2016-05-16 19:36:30 -04:00
Alexander Larsson
4316c9e104
lib: Add API to add/modify/remove remotes
2016-05-16 16:26:17 +02:00
Alexander Larsson
7cffe7c1b1
Actually export flatpak_installation_drop_caches
2016-05-16 10:22:45 +02:00
Alexander Larsson
096eb67c25
lib: Add flatpak_installation_drop_caches
2016-05-13 13:55:00 +02:00
Alexander Larsson
fe0a1be5f8
common: Add flags for flatpak_dir_uninstall
...
This is better than a list of booleans.
2016-05-12 19:52:48 +02:00
Alexander Larsson
c5e178f339
Use flatpak_dir_uninstall for app and lib
2016-05-12 17:18:14 +02:00
Alexander Larsson
712fc9fc08
Use the installed/not-installed errors more consequently
2016-05-12 17:17:27 +02:00
Alexander Larsson
e23bc2b7a6
Move flatpack_error quark to common so that the common code can use it
2016-05-12 16:33:48 +02:00
Alexander Larsson
acc6f55425
lib: Don't crash if we get_ref() fails
2016-05-11 13:48:07 +02:00
Alexander Larsson
20788bc290
lib: Remove deprecated calls
...
Now that we broke ABI anyway
2016-05-09 21:27:44 +02:00
Alexander Larsson
4f9ea6bb57
Remove unused variables
...
This fixes warnings from clang
2016-05-09 12:49:54 +02:00
Alexander Larsson
5e9b247d26
Migrate ~/.local/share/xdg-app to ~/.local/share/flatpak
2016-05-09 12:21:28 +02:00
Alexander Larsson
8abbc0186e
Rename everything but the on-disk location to flatpak
2016-05-09 11:11:55 +02:00
Alexander Larsson
ba37b22d78
Rename library to libflatpak
2016-05-09 09:46:26 +02:00
Alexander Larsson
c24528d369
Rename source files to flatpak
2016-05-09 09:00:20 +02:00
Alexander Larsson
6a613d1fab
Rename all non-autogenerated symbols to flatpak
2016-05-09 09:00:20 +02:00
Alexander Larsson
1ffdf27d92
uncruftify: Initial run, all non-problematic changes
2016-05-06 16:03:27 +02:00
Alexander Larsson
36d0a2fe2a
Add xdg_app_installed_ref_get_subpaths
...
This was in the header, but not the code
2016-05-02 16:50:37 +02:00
Alexander Larsson
f37b3261d6
Add support for disabled remotes
...
If this is set we don't list them by default, and we don't
automatically update apps from them.
2016-04-27 13:39:34 +02:00
Alexander Larsson
7fd926f07e
lib: Add xdg_app_get_default_arch
2016-04-27 13:13:26 +02:00
Alexander Larsson
b3b5da71c9
lib: Use deploydata file directly
...
This means we seek a lot less. Also, we get the cached installed
size rather than recalculating it all the time.
2016-04-27 13:09:34 +02:00
Alexander Larsson
a304b786f4
installation_fetch_remote_size_sync: Always fail with deprecation error
...
This is not supported anymore since it was replaced with the summary cache.
Remove the code so nothing accidentally uses it.
2016-04-27 09:29:48 +02:00
Alexander Larsson
2a46f3277c
Add xdg_app_dir_install/update helpers
...
These don't do much atm, but will let us clean up the child_repo handling
2016-04-26 16:24:09 +02:00
Alexander Larsson
b2b05e1175
update/install: Handle deploy using the system service
2016-04-25 18:59:17 +02:00
Alexander Larsson
7d509ab93a
Fix confusion about GError types
...
This was pretty mixed up. Also XdgAppError was not exported.
2016-04-21 20:59:30 +02:00
Alexander Larsson
d314df07c1
Add xdg_app_dir_deploy_install helper
2016-04-21 20:59:26 +02:00
Alexander Larsson
91eda8919e
common: Move duplicated code into xdg_app_dir_deploy_update
2016-04-21 20:19:01 +02:00
Alexander Larsson
1c1bc4acca
common: Move xdg_app_dir_pull_from_bundle to xdg_app_pull_from_bundle
...
The only difference is it takes an OstreeRepo, not a XdgAppDir, so we
can use it at a lower level too.
2016-04-19 13:31:55 +02:00
Alexander Larsson
fe1004f6af
xdg_app_installation_fetch_remote_metadata_sync2: Fix docs cut and paste issue
2016-04-14 19:31:46 +02:00
Alexander Larsson
1dd993cad6
lib: Add new cache based getters for metadata and size
2016-04-14 19:29:40 +02:00
Alexander Larsson
3cc45ccf13
Add support for subpath limited installs
...
This allows you to install e.g. org.freedesktop.Platform.Locale
but only the /sv subdir, and replaces using separate branches for
each locale.
2016-04-07 20:36:53 +02:00