Commit Graph
1447 Commits
Author SHA1 Message Date
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 e3e9c6559e tests: Test changing the subpaths on update 2016-06-07 22:12:51 +02:00
Alexander Larsson cfef57e343 Properly handle subpaths on update 2016-06-07 22:12:51 +02:00
Alexander Larsson 77f1d7660c Don't abort on errors when pruning
This could happen for local partial pulls, due to a bug in ostree
where it didn't create commitpartial state files during local pulls.
2016-06-07 22:12:51 +02:00
Alexander Larsson 20a737dc90 tests: Pull things via http instead of local pulls
This causes us to use the same codepaths as in real use.
Also, there seems to be an issue with partial pulls for local remotes.
2016-06-07 22:12:51 +02:00
Alexander Larsson 3639601848 Merge pull request #73 from matthiasclasen/logo
Add the logo to README.md
2016-06-07 15:19:57 +02:00
Alexander Larsson 1e5a42aff7 Fix build
The --disable-system-helper flag addition lacked a $
2016-06-07 10:10:30 +02:00
Alexander Larsson f9e171a618 Merge pull request #92 from matthiasclasen/optional-system-helper
library-only build
2016-06-07 09:38:37 +02:00
Alexander Larsson 007df6eb44 Merge pull request #94 from smcv/no-system-fonts
flatpak-run: don't fail if there are no system fonts
2016-06-07 09:36:22 +02:00
Simon McVittie 9b7c339ca6 flatpak-run: don't fail if there are no system fonts
In a minimal environment (like the one where we run installed-tests
in Debian), we might not have /usr/share/fonts.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-06-04 22:38:32 +01:00
Matthias Clasen 9b22b1f167 Make system helper build optional
This lets us avoid the polkit dependency when just building
flatpak for its library.
2016-06-04 14:56:59 -04:00
Alexander Larsson 1bf2998352 Add tests for subpaths 2016-06-03 18:03:43 +02:00
Alexander Larsson a0358c8785 Handle non-existing dirs when deploying a subpath 2016-06-03 18:03:23 +02:00
Alexander Larsson 1667f988de Add test-bundle-system
This tests installing a bundle via the system-helper.
2016-06-03 16:04:10 +02:00
Alexander Larsson e769af8661 system-helper: Handle installing bundles 2016-06-03 16:04:10 +02:00
Alexander Larsson 1eeaecf0a3 Merge pull request #88 from matthiasclasen/builder-command-docs
Improve an error message
2016-06-03 15:24:12 +02:00
Matthias Clasen 6d1837ce4b Make an error message more helpful
When we see somebody trying to use a command with spaces, we
should be helpful and point out how to do what they want to do.
2016-06-03 09:22:21 -04:00
Matthias Clasen a512da2592 Recommend a shell script wrapper for passing arguments
This has come up as a question, so document it.
2016-06-03 09:08:55 -04:00
Alexander Larsson 3f0cbf74b4 Update gitignore 2016-06-03 14:30:25 +02:00
Alexander Larsson 95dfd2f459 Add test for bundles 2016-06-03 14:30:25 +02:00
Alexander Larsson 8ef84cc3d1 Move shared bundle install code to flatpak_dir_install_bundle 2016-06-03 14:30:25 +02:00
Alexander Larsson 21ab14b19a Improve deployment of appstream data
This has several improvements:
 * Writes to a temporary location and renames at the end, so
   we never end up with partial checkouts.
 * Don't fsync each file during checkout, instead syncfs() at
   the end
 * Pre-create the target deployment directory so that we get the right
   permissions for it.
2016-06-03 14:30:25 +02:00
Alexander Larsson 4d38055840 Merge pull request #69 from matthiasclasen/bundle-doc
Document --oci
2016-06-03 12:37:21 +02:00
Matthias Clasen 0ea33a7e35 Add the logo to README.md 2016-06-02 18:05:22 -04:00
Matthias Clasen db540a15e7 Document the --oci option of flatpak build-import-bundle 2016-06-02 15:02:49 -04:00
Matthias Clasen b4d5ec76a8 Document the --oci option of flatpak build-bundle 2016-06-02 14:53:22 -04:00
Alexander Larsson 72118a40b6 Merge pull request #67 from smspillaz/fix-gh-56
completion: Don't show one-time switches already in use
2016-06-02 17:23:01 +02:00
Sam Spilsbury 7bd6c9b277 completion: Don't show one-time switches already in use 2016-06-02 21:38:16 +08:00
Sam Spilsbury 082821288e completion: Store original argv and argc
We deep-free the original argv here, since it isn't modified.
2016-06-02 21:38:16 +08:00
Alexander Larsson 13707f6b18 system-helper: Support directly pulling local remotes
For a local (file:// uri) remote, do an (untrusted) direct pull instead
of pulling into the users cached repo first. This way we do less copies,
as well as guaranteeing the source of the data. The later means its
mostly safe to also allow this for non-gpg signed remotes.
2016-06-02 15:30:08 +02:00
Alexander Larsson d950ed338f Merge pull request #65 from matthiasclasen/builder-messages
Add another status message to flatpak-builder
2016-06-02 09:12:08 +02:00
Alexander Larsson 4805d49bdf Merge pull request #37 from matthiasclasen/command-check
flatpak-builder: Ensure after build that the binary listed in "command" is installed
2016-06-02 08:58:30 +02:00
Alexander Larsson 71be0b2977 Merge pull request #62 from matthiasclasen/build-docs
Some fixed for flatpak-build(1)
2016-06-02 08:53:59 +02:00
matthiasclasen 4d8445fbb7 Small additions to flatpak-builder(1) (#63)
Document that app-id is the same as id, and fix a case
of suffixed<>suffix confusion.
2016-06-02 08:52:25 +02:00
matthiasclasen 5e2be3cb10 builder: Some consistency fixes for output (#64)
* builder: Some consistency fixes for output

Capitalize all error messages.
2016-06-02 08:50:58 +02:00
Matthias Clasen 7794a70f50 builder: Check that command exists after build
This keeps us from creating a non-working flatpak.
2016-06-01 23:31:57 -04:00
Matthias Clasen c7594e5515 Add another status message to flatpak-builder
Add a message for the 'rewriting the desktop file' step.
This helps in providing context for error messages when something
goes wrong.
2016-06-01 16:21:25 -04:00
Matthias Clasen 6ca2641203 Spelling: well-known
This is the spelling that is used in the D-Bus specification.
2016-06-01 15:38:23 -04:00
Matthias Clasen 6177f85c4d Document more options for flatpak build
The --default-arch, --system-own-name and --system-talk-name options
were all missing from the man page. Add them.
2016-06-01 15:36:50 -04:00
Matthias Clasen 77fe43808d Document --version and --verbose for flatpak-build
These options were missing here.
2016-06-01 15:31:13 -04:00
Matthias Clasen 2c591b2fcd Document --no-filesystem in flatpak-build(1)
Also document the :ro suffix for --filesystem.
2016-06-01 15:28:49 -04:00
Alexander Larsson 1db9764b73 Post-release version bump 2016-06-01 14:56:23 +02:00
Alexander Larsson dec99d6d6b Release 0.6.4 0.6.4 2016-06-01 10:28:03 +02:00
Alexander Larsson 5c23f9bd9d Don't create empty "repo*" directories in the CWD
We were using the wrong dirfd, so we created empty files in the
current directory.
2016-06-01 10:23:52 +02:00
Alexander Larsson a86400d003 Merge pull request #58 from smspillaz/warn-on-adding-invalid-remote
Warn on adding invalid remote
2016-06-01 09:30:26 +02:00
Sam Spilsbury 4fb1ae0b45 remote: Make the error message when summary_bytes == NULL more informative
It seems like one common user-error that could cause this is when
the remote URL was invalid.
2016-06-01 06:03:47 +00:00
Sam Spilsbury c533e1aee6 summary: Make flatpak_cache_dir_summary static void
This function always returned NULL, and the return value was never
checked.
2016-06-01 05:59:54 +00:00
Sam Spilsbury d9ec859878 summary: Don't cache summary if none was returned
ostree_repo_remote_fetch_summary can set out_summary to NULL but
still return TRUE according to the documentation, so don't assume
that *out_summary will always be set.
2016-06-01 05:58:21 +00:00
Alexander Larsson d3823c6528 Merge pull request #57 from cgwalters/mkdir-p
build: autogen.sh: Use mkdir -p to suppress warning
2016-05-31 21:08:02 +02:00