Commit Graph

1428 Commits

Author SHA1 Message Date
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
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
Colin Walters
99239b6e51 build: autogen.sh: Use mkdir -p to suppress warning
It's minor but hey, warnings stand out.
2016-05-31 15:05:34 -04:00
Alexander Larsson
f8d75f23be Update NEWS for release 0.6.3 2016-05-31 16:53:43 +02:00
Alexander Larsson
53552deb9a Update version to 0.6.3 2016-05-31 16:47:54 +02:00
Alexander Larsson
7e58da35af remote-add: Support remote-add --from=keyfile NAME
This allows you to have a single file that describes a repo.
It also allows a mimetype handle for it so that you can easily
install it via a single click.
2016-05-31 16:26:59 +02:00
Alexander Larsson
f4c2eeb057 Fix version test
The --version output changes slightly (was capitalized)
2016-05-31 15:16:24 +02:00
Alexander Larsson
47ae2b2523 Update to new bubblewrap 2016-05-31 15:07:38 +02:00
Alexander Larsson
733a28c9c4 Deply: Disable per-file fsync and do a single syncfs when deploy is done
This should perform a lot better
2016-05-31 14:41:04 +02:00
Alexander Larsson
e7143cd4c9 Merge pull request #55 from amigadave/master
Some small configure improvements
2016-05-31 13:54:02 +02:00
David King
c8d04472ba configure: Remove some redundant AC_SUBST usage
PKG_CHECK_MODULES has called these automatically since well before
pkg-config 0.24.
2016-05-31 10:52:50 +02:00
David King
b44d7462b8 configure: Use some extra AC_INIT parameters
Additionally, use PACKAGE_NAME when setting the gettext domain.

http://www.gnu.org/software/autoconf/manual/autoconf.html#Initializing-configure
2016-05-31 10:49:10 +02:00
David King
b230abe4fe Include README.md in tarball 2016-05-31 10:38:29 +02:00
David King
965b56fcc5 build: Use AM_DISTCHECK_CONFIGURE_FLAGS
DISTCHECK_CONFIGURE_FLAGS is for users and packagers to override
distcheck options, while AM_DISTCHECK_CONFIGURE_FLAGS is for the
maintainer of the software.

https://www.gnu.org/software/automake/manual/automake.html#DISTCHECK_005fCONFIGURE_005fFLAGS
2016-05-31 10:35:14 +02:00
Alexander Larsson
759bfaa0f4 tests: Only skip tests if no xattrs in /var/tmp
We explicitly put the checkouts in /var/tmp to avoid the common
case of /tmp being tmpfs and not supporting xattrs.
2016-05-31 09:18:08 +02:00
Alexander Larsson
f8ae525ce8 Merge pull request #54 from amigadave/master
bwrap: Move to under libexecdir
2016-05-30 18:57:05 +02:00
David King
fc6282e865 bwrap: Move to under libexecdir
According to the FHS, applications which place internal libraries in
/usr/libexec should not also use /usr/lib for this purpose:

http://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html

As several flatpak helpers are already installed in libexecdir, move
the bwrap helper to /usr/libexec/flatpak-bwrap.
2016-05-30 18:40:12 +02:00
Alexander Larsson
bd7cf1af93 install: Better check for pre-existing installation
We need an actual active installation, not just the base directory.

This caused a failure if the user had tried to install and app but the
installation failed. After that installation failed due to it claiming
to be installed, while uninstall failed due it it *not* being
installed.
2016-05-30 16:35:50 +02:00
Alexander Larsson
8533f06dc0 Add more completions 2016-05-30 14:54:22 +02:00
Alexander Larsson
4e3149e88d Properly show the help in case of no command or unknown command 2016-05-27 16:48:10 +02:00
Alexander Larsson
eeaa832095 Replace bash completion shell script with C-based version
This doesn't do everything yet, but its got the basics covered.
2016-05-27 16:30:13 +02:00