Piotr Drąg
ff2d6c7bde
Updated Polish translation
2016-09-05 16:19:44 +02:00
Piotr Drąg
21a7bd532b
Update POTFILES.in
2016-09-05 16:19:44 +02:00
Alexander Larsson
8475dfeee9
document-portal: Don't link to libflatpak.so
2016-09-05 16:18:26 +02:00
Alexander Larsson
0a20f28f89
session-helper: Add support for -r -v --help --version
2016-09-05 11:54:12 +02:00
Alexander Larsson
ff6839a291
utils: Add flatpak_is_in_sandbox() helper
2016-09-05 11:54:12 +02:00
Alexander Larsson
3b90b00e39
build: Export a $XDG_RUN_DIR/flatpak-info file from flatpak build too
...
This way we know if we're in a sandbox or not even at build time,
and things like portal pickup etc, works.
2016-09-05 11:54:12 +02:00
Alexander Larsson
4865d1edd2
common: Export flatpak_run_add_app_info_args
...
We want to use this from flatpak build too
2016-09-05 11:54:12 +02:00
Alexander Larsson
3ec0ecba93
common: add_app_info_args() talk GFile *app_files instead of a deploy
...
We don't really need the full deploy anyway.
2016-09-05 11:54:12 +02:00
Alexander Larsson
e50f7a363f
build-update-repo: Reuse cache info from old summary
...
This makes rebuilding partial changes much faster.
2016-09-02 11:13:11 +02:00
Alexander Larsson
ba377b29e6
common: Add utility function to load summary file from local repo
2016-09-02 11:10:29 +02:00
Alexander Larsson
0ca185c93f
Merge pull request #280 from dbnicholson/G269-summary-optimization
...
Speed up summary regeneration
2016-09-02 10:31:29 +02:00
Dan Nicholson
d2d9804187
utils: Only collect cache data once per revision
...
If there are multiple refs pointing to the same revision, then
collecting the size and metadata info for each of them is wasteful.
Maintain a hash table of the data so that it's only collected once per
revision.
This slightly widens an existing race where a ref could be updated
before the summary file is regenerated. In that case, the data in the
xa.cache variant would correspond to the wrong revision. I don't believe
this can be fixed unless there's locking at the ostree level.
2016-09-01 10:11:13 -07:00
Dan Nicholson
e86ae01ba0
utils: Only update summary info for flatpak refs
...
If there are non-flatpak refs in the ostree repo, there's no use in
collecting size or metadata information for them. Instead, only operate
on refs in the appstream, app or runtime prefixes.
2016-09-01 10:11:13 -07:00
Dan Nicholson
d304c4eca1
utils: Free list of refs in flatpak_repo_update
...
Although the data is owned by the hash table, the list storage needs to
be freed with g_list_free(). Use g_autoptr for that.
2016-09-01 10:11:07 -07:00
Alexander Larsson
a5536d0420
update: Don't stop the entire update if one app fails
2016-09-01 11:45:27 +02:00
Alexander Larsson
509bb33a2b
Merge pull request #237 from mwleeds/add-trace-msg
...
utils: Print a debug message when launching subprocesses
2016-08-30 09:22:02 +02:00
Alexander Larsson
c076b33ba3
Fix last commit
...
The checks where inverted.
2016-08-29 16:15:32 +02:00
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