Commit Graph

1767 Commits

Author SHA1 Message Date
Alexander Larsson
aa160aa111 lib: Make sure we always call flatpak_dir_ensure_repo after cloning the dir
Otherwise we're not guaranteed the new FlatpakDir has a repo.
2016-08-29 16:11:48 +02:00
Alexander Larsson
59040b50f2 Merge pull request #264 from urbalazs/master
Added Hungarian translation
2016-08-29 12:35:39 +02:00
Alexander Larsson
b39c2e81ee Merge pull request #265 from ipuustin/fix-build
Create directories before attempting to generate code into them
2016-08-29 12:35:29 +02:00
Alexander Larsson
6e37155a3e testlibrary: Skip launch test is bwrap is not supported 2016-08-29 12:32:31 +02:00
Alexander Larsson
e18ab46977 build-update-repo: Add some spew before starting the prune operation
This makes it more obvious what is happening, and which part is slow.
2016-08-29 12:06:16 +02:00
Alexander Larsson
b678431197 Treat remotes with empty url as disabled
This happens with e.g. remotes from a bundle with no origin.

Fixes https://github.com/flatpak/flatpak/issues/270
2016-08-29 12:03:33 +02:00
Alexander Larsson
d40ae5ea92 Merge pull request #271 from yurchor/master
Add Ukrainian translation
2016-08-29 11:49:18 +02:00
Alexander Larsson
874a67c721 Update: Don't double-call flatpak_dir_cleanup_removed
This is already called automatically from flatpak_dir_deploy_update.
In particular, in the system-installed case this will cause
a warning due to not being able to remove the old checkout with
permission denied.
2016-08-29 11:48:30 +02:00
Alexander Larsson
d0ac28f2fa Merge pull request #273 from csoriano89/patch-1
Readme.md: align image
2016-08-29 11:39:09 +02:00
Alexander Larsson
b1fcf792e1 testlibrary: Include libglnx before flatpak.h
This makes the code use the backport of g_auot* so that we can build
against older versions of glib.
2016-08-29 11:01:05 +02:00
Carlos Soriano Sánchez
8ff3f7a7e0 Readme.md: align image
Use css to align the Flatpak image on the Readme.md since markdown
doesn't allow tweaking the positioning.

Sorry, I couldn't let it like this :)
2016-08-27 23:36:56 +02:00
Yuri Chornoivan
12c2a67773 Add Ukrainian translation 2016-08-27 13:17:56 +03:00
Alexander Larsson
78dae42509 Set MALLOC_CHECK_ and MALLOC_PERTURB_ during tests 2016-08-26 12:32:17 +02:00
Ismo Puustinen
2d26a7d0a6 Create directories before attempting to generate code into them
If flatpak is built from a separate build directory, code generation
fails because the directory structure is not in place. Create the
necessary directories before code generation.
2016-08-26 12:36:35 +03:00
Alexander Larsson
07fa8138a2 Merge pull request #194 from smcv/shell-injection
unrpm: prevent shell injection
2016-08-26 11:19:34 +02:00
Alexander Larsson
fcd91ad6db Fix python tests in make distcheck 0.6.9 2016-08-25 14:21:22 +02:00
Alexander Larsson
c043892f21 Update pofiles 2016-08-25 14:17:53 +02:00
Alexander Larsson
837dd35234 Update versin to 0.6.9 2016-08-25 13:46:22 +02:00
Alexander Larsson
90d4f8d1b4 Don't fail if appstream-compose fails, instead warn.
This means we stop breaking existing builds e.g. when an older
appstream-compose in the runtime can't handle a new appdata field.
2016-08-25 11:34:10 +02:00
Alexander Larsson
d069ee808b builder: Make more of the validation warnings instead of errors
We don't want builds to break due to these, as we update flatpak
on the build servers. Also, use g_print instead of g_warning to
print the warnings.
2016-08-25 11:30:10 +02:00
Balázs Úr
e7f2b46369 Added Hungarian translation 2016-08-24 23:47:42 +02:00
Alexander Larsson
88959b9324 Merge pull request #263 from bochecha/git-submodules-absolute-url
builder: Handle submodules using with relative URLs
2016-08-24 21:15:43 +02:00
Mathieu Bridon
63cddfa80e builder: Handle submodules using with relative URLs
Some projects declare their Git submodules with URLs relative to their
own.

For example, gedit is hosted at git://git.gnome.org/gedit, and has its
libgd submodule declared with the ../libgd URL. We should treat the
latter as git://git.gnome.org/libgd.

This was in fact properly done in the past, but I broke it in commit
1171e1d202.

This fixes it again.
2016-08-24 21:06:00 +02:00
Alexander Larsson
becb1b88bd Fix crash in "flatpak update" with no args
This crashed, trying to split NULL into parts..
2016-08-24 16:42:36 +02:00
Alexander Larsson
d637d471fb Fix double-free during install/update 2016-08-24 15:42:01 +02:00
Alexander Larsson
e966d56543 Remove unwanted static deltas after summary is updated 2016-08-24 14:54:29 +02:00
Alexander Larsson
24c691f645 run: Mount /run/user/$uid/app/$appid in the sandbox
This directory is shared between all instances of the app, as well
as the host. In many ways this is similar to the ~/.var/app/$appid
directory, but the directory is guaranteed to not be persistent (/run
is on tmpfs), local to the host (not NFS), as well as nice support
for features like locks and mmap (due to being tmpfs).
2016-08-24 14:11:45 +02:00
Alexander Larsson
54c5f9a59e Allow specifying partial refs as name in commands
The commands: install, update, uninstall, info, make-current and run
now supports specifying a partial ref for the name. This is a different
way of specifying optional arch and branch arguments.

For instance org.app.App//master is the same as "org.app.App master" or
"--branch=master org.app.App".

This is useful if you're cutting and pasting from e.g. the list -d output.
2016-08-24 09:18:00 +02:00
Alexander Larsson
23c1c22266 commit-from: Support specifying multiple refs
You can list refs, or specify none to mean every source ref
2016-08-23 16:13:04 +02:00
Alexander Larsson
0a3ca96da0 Add --no-update-summary to export, commit-from and import-bundle
We want this for e.g. the build system where we will do multiple
repo operations and then atomically regenerate the summary once.
2016-08-23 15:12:27 +02:00
Alexander Larsson
6386ea3222 build-import-bundle: Update repo similarly to build-export
This makes sure we update the summary, as well as take args for
gpg keys and whether to update the appstream branch.
2016-08-23 14:57:08 +02:00
Alexander Larsson
522ac5200b update: Disable update shortcut for local repos
These may not have up-to-date summaries
2016-08-23 14:33:48 +02:00
Alexander Larsson
c17e073f81 update: Add early check for nop updates using cached summary
This makes flatpak update a lot faster.
2016-08-23 12:30:41 +02:00
Alexander Larsson
783cfce518 repo-update: Better static delta creation
We now do the creation of static deltas in parallel, and we
also remove unneeded static deltas.
2016-08-23 10:49:54 +02:00
Alexander Larsson
cfba1431b4 Spew less when updating appstream branch
Missing icons are now only visible in verbose logs, and we don't
print warnings about missing appdata for runtimes (such as locale
and debug extensions).
2016-08-23 10:33:22 +02:00
Alexander Larsson
b0a7f8052b builder: Add --sandbox support
This disables build-args support, which is nice when building things
on e.g. a shared build-machine, where we don't want the build to
be able to break out of the sandbox (by specifying e.g. --share=network).
2016-08-22 17:23:32 +02:00
Alexander Larsson
b03b21f416 Merge branch 'builder-git-submodules' of git://github.com/bochecha/flatpak into bochecha-builder-git-submodules 2016-08-22 16:08:39 +02:00
Alexander Larsson
6578d37984 Drop libgsystem dependency 2016-08-22 16:00:33 +02:00
Alexander Larsson
467932e418 Drop use of gs_file_enumerator_iterate 2016-08-22 15:56:35 +02:00
Alexander Larsson
540a3a49df Drop use of gs_file_open_in_tmpdir_at
We import a copy of this
2016-08-22 15:44:52 +02:00
Alexander Larsson
c14fbc3efb Drop calls to gs_file_rename
We make an equivalent helper inline.
2016-08-22 15:28:17 +02:00
Alexander Larsson
289ae4474b Use glnx_gen_temp_name instead of gs_fileutil_gen_tmp_name
+      enter the commit message for your changes. Lines starting
2016-08-22 15:20:39 +02:00
Alexander Larsson
be8dae4693 Convert to glxn_* console helpers instead of gs_* 2016-08-22 15:08:59 +02:00
Alexander Larsson
42fae1c5d1 tests: Fix python2 use 2016-08-22 14:43:16 +02:00
Alexander Larsson
fcffefee26 Replace openat() calls from libgsystem 2016-08-22 14:12:31 +02:00
Alexander Larsson
b8a5a0092c build-init: Use flatpak_cp_a instead ofgs_shutil_cp_a 2016-08-22 13:59:00 +02:00
Alexander Larsson
65f1cf993d Create and use flatpak_file_get_path_cached
This is simpler that the one in libgs, as well as lockless. Also, it
removes one more use of libgs.
2016-08-22 10:22:42 +02:00
Alexander Larsson
9c907c992d Replace gs_shutil_rm_rf with small helper wrapper over libglnx 2016-08-22 10:06:08 +02:00
Alexander Larsson
8d71a9fc18 Update to latest libglnx master
Not a lot there, but there was at least one bugfix that we may hit.
2016-08-22 09:58:23 +02:00
Alexander Larsson
e0bd22bfe8 Add flatpak_mkdir_p helper and use it
This replaces all current callers of gs_file_ensure_directory with
equivalent code.

Actually, two instances were calling gs_file_ensure_directory with
FALSE, i.e. error out on EEXIST, but those cases seem fine with the
do-nothing-if-exists semantics.
2016-08-22 09:29:24 +02:00