Commit Graph

1149 Commits

Author SHA1 Message Date
Alexander Larsson
4734eb95df system-helper: Minor cleanup 2016-04-26 11:58:29 +02:00
Alexander Larsson
49d84aed94 We don't actually need the introspection data in the resource
All the required  stuff are in the generated code anyway.
2016-04-26 11:50:16 +02:00
Alexander Larsson
d1788ae318 xdg_app_dir_init_system_helper: Properly pass the error in 2016-04-26 08:50:42 +02:00
Alexander Larsson
96d236a531 xdg_app_dir_pull_untrusted_local: Fix issues pointed out by cosimoc
Also, remove some spew
2016-04-26 08:50:07 +02:00
Alexander Larsson
a7f5b57c75 Don't try to use system helper if its not installed 2016-04-25 19:48:17 +02:00
Alexander Larsson
dc60f02716 system-helper: Add PolicyKit authentication for system helper 2016-04-25 18:59:17 +02:00
Alexander Larsson
b2b05e1175 update/install: Handle deploy using the system service 2016-04-25 18:59:17 +02:00
Alexander Larsson
6af6d629a2 Initial work on pulling to a child repo 2016-04-25 18:59:17 +02:00
Alexander Larsson
8ac40150a6 Initial (empty) version of system helper 2016-04-25 18:59:17 +02:00
Alexander Larsson
fee5d4d169 XdgAppDir: Add xdg_app_dir_pull_untrusted_local helper 2016-04-25 18:59:17 +02:00
Alexander Larsson
ac517099eb utils: Add xdg_app_allocate_tmpdir 2016-04-25 18:59:17 +02:00
Alexander Larsson
2d74810cbc common: Add (and use) xdg_app_summary_lookup_ref helper 2016-04-25 18:59:17 +02:00
Alexander Larsson
f340105b4c Add gettext support to build 2016-04-25 18:59:17 +02:00
Alexander Larsson
4261057e2a common: Don't use singletons for the system/user XdgAppDirs
Without this we never finalize them and can't e.g. remote temporary
files.
2016-04-22 08:55:41 +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
21dd53d1ff common: Set ~/.local/share/xdg-app/system-cache as cache dir for system repo
This means we can use a summary cache for system wide stuff which causes
loads to be faster.
2016-04-21 18:54:15 +02:00
Alexander Larsson
351c2d5bd2 Read system remotes from /etc/xdg-app/remotes.d/*.conf 2016-04-21 18:47:11 +02:00
Alexander Larsson
3383eefc82 Drop checks for old ostree versions 2016-04-21 18:36:48 +02:00
Alexander Larsson
29458bc154 Remove support for older ostree without bundle support
This is not needed when we depend on 2016.5
2016-04-21 18:34:28 +02:00
Alexander Larsson
16a02dd6c1 Bump ostree requirement to 2016.5
This release has a bunch of important fixes and new features that we
want to start relying on.
2016-04-21 18:31:34 +02:00
Alexander Larsson
0b1bc5bc4e build-bundle: Move the gpg_data local to the right function
This was unused in the main function, something which was missed
when the build_bundle() helper was split out.
2016-04-21 09:50:01 +02:00
Alexander Larsson
9171c94662 builder: Fix unused return value warnings
This just adds a (void) cast to avoid the warnings.
2016-04-21 09:49:24 +02:00
Alexander Larsson
af03d2f5b4 Remove unused local variables reported by clang 2016-04-21 09:48:56 +02:00
Alexander Larsson
1838b1e9da common: Fix warning due to get_user_dir_from_string return type change 2016-04-21 09:39:55 +02:00
Alexander Larsson
c719bb1980 Merge pull request #137 from matthiasclasen/talk-doc
Expands docs around dbus policy options
2016-04-21 08:38:14 +02:00
Matthias Clasen
dd8ef68f76 Expands docs around dbus policy options
We should mention that the NAME may end with .* to match multiple
names. Also, add the --system- variants of these options to the
xdg-app run man page where they were missing.
2016-04-20 15:27:27 -04:00
Alexander Larsson
4575d07661 run: Always consider xdg-* valid even when not configured
Before we would claim e.g. xdg-videos as invalid if the user didn't
configure the videos user directory.
2016-04-20 14:26:03 +02:00
Alexander Larsson
21b96ddc39 Merge pull request #136 from joaquimrocha/skip_locales
Skip locale exportation when there is no separate locales dir
2016-04-20 12:37:36 +02:00
Joaquim Rocha
f112d117da builder: Do not repeat the separate locales path
These changes replace all occurrences of 'share/runtime/locale' with a
define so it will avoid possible mistakes when having to be replaced
one day.
2016-04-20 12:32:02 +02:00
Joaquim Rocha
39279c8b8b builder: Skip separate locales exportation if directory doesn't exist
This will avoid errors when separate_locales is set to true but the
locales directory does not exist. This is the case of many apps that do
not support separate locales but haven't specifically set
separate_locales to false in the configuration.
2016-04-20 12:32:02 +02:00
Alexander Larsson
b16517798f Add --ref to build-import-bundle to override branch name 2016-04-20 11:46:13 +02:00
Alexander Larsson
5392f2d629 common: Break out xdg_app_mtree_create_root helper 2016-04-20 09:55:13 +02:00
Alexander Larsson
cfd3f303b1 Add build-import-bundle command 2016-04-19 13:53:26 +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
18bb0868e9 build-bundle: Split out bundle building to helper 2016-04-19 13:19:36 +02:00
Alexander Larsson
0730eb05d7 dbus-filter: Log arg0 validation failures 2016-04-19 09:44:49 +02:00
Alexander Larsson
8b77e8ae17 Merge pull request #134 from smcv/systemd
session-helper: connect the D-Bus and systemd services
2016-04-18 08:48:57 +02:00
Simon McVittie
3d0a97099d session-helper: connect the D-Bus and systemd services
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-04-17 10:25:57 +01:00
Alexander Larsson
c8cdb75a09 Merge branch 'typo-fix' of https://github.com/matthiasclasen/xdg-app into matthiasclasen-typo-fix 2016-04-16 21:43:06 +02:00
Alexander Larsson
f2a96888f5 Merge pull request #132 from matthiasclasen/json-docs
Document field types
2016-04-16 21:38:45 +02:00
Matthias Clasen
1c41cac06b Document field types
This is not entirely clear for all fields from the documentation.
2016-04-16 00:54:34 -04:00
Matthias Clasen
73c98722e8 Fix a typo
s/extention/extension/
2016-04-16 00:11:39 -04:00
Matthias Clasen
3299640b2d Remove a duplicate { 2016-04-16 00:11:05 -04:00
Alexander Larsson
265ba5e528 Merge pull request #128 from matthiasclasen/run-fixes
Some fixes for xdg-app-builder --run
2016-04-15 11:50:34 +02:00
Alexander Larsson
1ee0fb7e96 Merge pull request #129 from matthiasclasen/document-force-clean
Document --force-clean
2016-04-15 11:49:33 +02:00
Alexander Larsson
8d6ba78a1d Update NEWS and version to 0.5.2 0.5.2 2016-04-15 11:27:31 +02:00
Tristan Van Berkom
401c7b2dea BuilderModule: Use builder_options_get_config_opts()
The configure arguments are now a combination of the
default config-opts plus the accumulative sum of the config-opts
specified in the build-options that are active for a given build
context.

https://bugs.freedesktop.org/show_bug.cgi?id=94940
2016-04-15 10:25:55 +02:00
Tristan Van Berkom
17ec9ef3b0 BuilderOptions: Added 'config-opts' option.
Allows conditional configure arguments.

https://bugs.freedesktop.org/show_bug.cgi?id=94940
2016-04-15 10:25:55 +02:00