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
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
Mathieu Bridon
1171e1d202
builder: Redo git submodules handling
...
flatpak-builder was mixing the path and the name of a submodule, which
would lead to download failures when they were different.
Fixes #216
2016-08-20 12:44:27 +02:00
Alexander Larsson
1976639153
flatpak: Add build-commit-from command
...
This creates new commits based on a different repo/branch. Very useful
to e.g. import and sign verified correct commits from an autobuilder
repo.
2016-08-19 17:24:03 +02:00
Alexander Larsson
1970ecbea1
common: Add utility for g_auto style ostree transaction abortions
2016-08-19 16:51:56 +02:00
Alexander Larsson
5ee07d79c8
common: Add flatpak_complete_ref()
...
This is for commandline completion of ref:s
2016-08-19 16:51:24 +02:00
Alexander Larsson
6d7427f1f7
Simplify appstream branch generation error messages
...
This removes references to spawning appstream-builder, which we don't
call anymore.
2016-08-19 16:50:59 +02:00
Alexander Larsson
bbf0a57589
build-export: Only warn for Exec lines that are not found
...
There are various cases where this is ok. For instance to start
a binary in the runtime, such as in:
https://github.com/flatpak/flatpak/issues/260
2016-08-19 15:58:15 +02:00
Alexander Larsson
fb3bfae85b
builder: Add --stop-at=module
...
Stop building at a specified module from the json file.
This is useful during development. For instance, you can do --stop-at=main-app
to build all the dependencies into the appdir, then you can do a build of an
already checked out git repo (possibly with changes).
2016-08-19 11:25:23 +02:00
Alexander Larsson
f622b014a7
builder: Handle symbolic icons in rename-icons
2016-08-19 11:05:18 +02:00
Alexander Larsson
db67edcc98
Fix validation of service files
...
We need to rewrite /app absolute paths just like we do for
desktop files.
2016-08-19 10:47:40 +02:00
Alexander Larsson
12600e2f45
Merge pull request #253 from mariobl/master
...
Updated German translation
2016-08-18 12:44:51 +02:00
Mario Blättermann
432f8127b5
Updated German translation
2016-08-18 12:34:22 +02:00
Alexander Larsson
92d9d9e4dc
Update: Fix crashed when updating runtimes
...
The debug spew were looking for the "current" ref, but there is
no such thing for runtimes, only apps.
2016-08-17 15:32:11 +02:00