Alexander Larsson
21e5391ab8
Merge pull request #121 from matthiasclasen/gpg-import-error
...
Another man page fix
2016-04-13 13:16:56 +02:00
Matthias Clasen
9223be6cee
Improve an error message
...
If we don't find the file for --gpg-import in the remote-add
command, say so and mention the file name.
2016-04-13 06:59:21 -04:00
Alexander Larsson
eb3a0df75c
Add xdg-app build-sign to sign a single commit
2016-04-13 10:08:59 +02:00
Alexander Larsson
51781b50d2
repo-update: Fix docs
...
The gpg key signs the summary, not the commit
2016-04-13 09:37:49 +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
Alexander Larsson
762d1a6295
seccomp: Allow running the target arch
...
This adds the app target arch to the list of the allowed arches
in seccomp. It also allows the native arch, because otherwise
xdg-app-helper can't run.
This means that if your userspace (i.e. xdg-app-helper) is built in
64bit mode, then 64bit apps can't run 32bit apps. However, if you're
running a 32bit app it is allowed to run both 32bit and 64bit apps.
Not ideal, but at least the common case is safer.
2016-03-24 21:04:01 +01:00
Matthias Clasen
bf4c5c4943
Fix indentation
...
gcc 6 warns about this misleadingly indented line.
2016-03-24 00:00:12 -04:00
Matthias Clasen
96437c78e7
Don't check that the name is a branch
...
Don't call xdg_app_is_valid_branch() to verify an application name.
Use xdg_app_is_valid_name().
2016-03-22 11:27:59 -04:00
Alexander Larsson
08826258ec
Update summary after generating deltas
...
Because deltas are in the summary.
2016-03-15 22:40:33 +01:00
Alexander Larsson
45a8b97542
Enabling gpg means require both signed commits and summaries
...
It makes no sense to not require this. We're not held back by
backwards compat issues, so lets be maximally secure.
2016-03-15 17:03:21 +01:00
Alexander Larsson
26c2bb1b81
lib: Add xdg_app_bundle_ref_get_installed_size()
2016-02-25 21:34:44 +01:00
Alexander Larsson
69890db5f1
build-update-repo: Add --generate-static-deltas option
2016-02-25 21:13:20 +01:00
Alexander Larsson
986224b80c
build-bundle: Extract appdata and icons into metadata
2016-02-25 19:38:20 +01:00
Alexander Larsson
7ac2722800
common: Add xdg_app_read_stream helper
2016-02-25 19:34:04 +01:00
Alexander Larsson
382ae396b3
lib: Add xdg_app_installation_install_bundle
2016-02-25 16:05:13 +01:00
Alexander Larsson
cd13e9e21d
bundles: Don't lock during pull
...
There is no need for that
2016-02-25 15:41:37 +01:00
Alexander Larsson
f89e004fa3
Remove origin repos on uninstall
2016-02-25 11:44:23 +01:00
Alexander Larsson
eadb10cba7
common: Move part of bundle install to helper functions
2016-02-25 11:31:22 +01:00
Alexander Larsson
e66e7e3f15
bundles: Verify that the header metadata matches the deployed one at install
...
Otherwise the bundle can lie about requested permissions.
2016-02-24 15:48:33 +01:00
Alexander Larsson
4c6a05aba1
common: Break out bundle loader to helper utility
2016-02-24 14:16:52 +01:00
Alexander Larsson
8c81746a3e
build-bundle: Add metadata file as metadata element
...
This way you can get info about the file before installing it
2016-02-24 13:41:38 +01:00
Alexander Larsson
5f96507913
Add a file header to bundles
2016-02-23 09:44:18 +01:00
Alexander Larsson
abdbb17a72
Remove all appstream checkouts and mirrored refs when deleting remote
2016-02-18 12:54:40 +01:00
Alexander Larsson
be97206c7b
build-init: Support --tag=FOO
2016-02-17 14:50:34 +01:00
Alexander Larsson
83d71fb110
info: Fix support for system installed runtimes (typo)
2016-02-12 14:07:04 +01:00
Alexander Larsson
0bfb064030
Update exports on uninstall too
2016-02-09 14:50:20 +01:00
Alexander Larsson
32e9502675
Fix some g_propagate_error typos
2016-02-08 16:16:38 +01:00
Alexander Larsson
dd1e967b60
Don't export app-info files
...
Also, pick up the non-exported files when updating the appdata branch
2016-02-08 10:19:30 +01:00
Alexander Larsson
74b7779cde
install-app: Actually look for apps, not runtimes
2016-02-03 14:03:42 +01:00
Alexander Larsson
1d5fb6438b
Add xdg-app info command
2016-02-02 17:51:10 +01:00
Alexander Larsson
bd174d90bc
install: Only set current for apps, not for runtimes
2016-01-29 15:54:54 +01:00
Alexander Larsson
4ac5befb7f
Support a proxy on the system bus similar to the one on the session bus
2016-01-29 08:50:11 +01:00
Alexander Larsson
6349b3ffc1
helper: Make user namespace support vs setuid a runtime, not build-time option
...
We now check at runtime if we have raised privs, and only if not so do we try
to use unprivileged user namespaces. This means you can build xdg-app however,
and then setuid/setcap the binary however you want afterwards.
2016-01-28 09:43:45 +01:00
Alexander Larsson
7f05ac562c
update: Make both branch and name optional
...
We know what is installed, so we just update everything
that you don't specify the details for.
2016-01-22 15:21:20 +01:00
Alexander Larsson
62c0d3ad3d
build-export: Never export files you can't read
...
It makes no sense to have these in a runtime or an app, it just
causes issues.
2016-01-22 12:21:49 +01:00
Alexander Larsson
03905e181a
build-init: Also use the new cp_a for sdk extensions
2016-01-22 11:58:35 +01:00
Alexander Larsson
c2eea29cde
build-init: Don't copy uid/gid when initializing a writable sdk
...
This is not permitted if the sdk is system installed.
2016-01-22 11:45:01 +01:00
Alexander Larsson
22ec9837bf
build: When using a writable /usr, don't use runtime extensions
...
These are readonly and writes there will fail. Instead you need
to pass the --sdk-extensions you want explicitly to build-init.
2016-01-22 10:34:47 +01:00
Alexander Larsson
8d0d4636c5
build-finish: Export app-info, not appdata
2016-01-21 17:11:22 +01:00
Alexander Larsson
022b9876f7
build-init: Add --sdk-extension
2016-01-20 14:00:53 +01:00
Alexander Larsson
6189fd3f7a
build-finish: Fix exports
...
This was reading an unintialized variable
2016-01-19 16:53:11 +01:00
Alexander Larsson
2abe3ff911
Fix possible read of uninitialized variable
2016-01-19 12:38:03 +01:00
Alexander Larsson
071561637a
Remove unused variables
2016-01-19 12:37:51 +01:00
Alexander Larsson
2c08cdc4e0
override: Fix warning
2016-01-19 12:32:04 +01:00
Alexander Larsson
9e8ca412f5
build-update-repo: Add --prune and --prune-depth options
2016-01-19 12:26:45 +01:00
Alexander Larsson
24ec8445a3
override: Fix error if override file doesn't already exist
2016-01-19 12:09:54 +01:00
Alexander Larsson
6e204a4d2e
Add support to gpg sign summaries and appstream
2016-01-18 21:36:57 +01:00
Alexander Larsson
de7e19e40f
The plural of appdata is appstream
2016-01-18 21:06:42 +01:00
Alexander Larsson
e91a4c79e0
Builder: Support commiting a platform
2016-01-18 15:22:56 +01:00
Alexander Larsson
3341fb08ad
builder: Allow building runtime sdks (based on existing sdk)
...
This includes a few different changes:
* Add build-runtime boolean property
* Rename "app-id" property to "id"
* Add metadata property to use a custom base metadata file
* Default to writable-sdk to TRUE for runtimes
* Default prefix to /usr for runtimes
* Put manifest in usr for runtimes
* Pick up debuginfo from usr for runtimes
* Make build-finish work on runtimes, but only export appdata
2016-01-18 11:43:02 +01:00