Commit Graph

7164 Commits

Author SHA1 Message Date
Matthias Clasen
62b8ae2953 table printer: move to its own source files
This is a pretty standalone object, and it is nicer to
have it in its own files. All users have been updated
to include the new flatpak-table-printer.h header.
2017-05-02 14:56:04 +02:00
Matthias Clasen
1577c1a08e repo: Set column titles
Set column titles when printing branch information using the
table printer.
2017-05-02 14:56:04 +02:00
Matthias Clasen
1998acb18e table printer: Only show titles on ttys
Avoid showing column titles unless stdout is a tty.
2017-05-02 14:56:04 +02:00
Matthias Clasen
be92e4aa7e table printer: Support column titles
Add an api to set column titles, and format them in bold.
2017-05-02 14:56:04 +02:00
Matthias Clasen
ffef508830 repo: Improve formatting of size columns
Use the new aligned column support in the table printer.
2017-05-02 14:56:04 +02:00
Matthias Clasen
2a5ce5a05e table printer: Support column alignment
Add support for aligning columns at a certain position.
This will be used to line up numbers at the decimal point,
in future commits.
2017-05-02 14:56:04 +02:00
Matthias Clasen
fbcaf05362 table printer: Introduce a cell struct
No functional change here, simply some data structure reorg,
so we can have more data for each cell in the future.
2017-05-02 14:56:04 +02:00
Matthias Clasen
e958c15808 repo command: use FlatpakTablePrinter
This makes the output more similar to the other commands,
and will make us benefit from future improvements to the
table printer.
2017-05-02 14:56:04 +02:00
Matthias Clasen
17dd7b7861 Revise the flatpak repo command slightly
Make --info only print out general information, and add a new
option --branches which lists the per-branch information.
2017-05-02 14:56:04 +02:00
Matthias Clasen
1137c64bf6 Document some environment variables (#754)
* Document some environment variables

These are only the most 'official' looking ones.
2017-05-02 14:52:51 +02:00
Matthias Clasen
917d404773 Merge pull request #734 from matthiasclasen/partial-extension-size
Improve display of partial extension sizes
2017-04-30 07:54:28 -04:00
Matthias Clasen
47c5ae9fd5 Merge pull request #745 from cgwalters/bump-libglnx
libglnx: Bump to latest master, use new file copy API
2017-04-30 07:48:47 -04:00
Matthias Clasen
a6e4534997 Merge pull request #748 from nazgul77/master
Update German translation
2017-04-29 08:54:09 -04:00
Christian
2a73aa958c Merge pull request #1 from nazgul77/de-translations
Update German translation
2017-04-29 14:29:05 +02:00
Christian
b1261e335c Update German translation 2017-04-29 14:27:55 +02:00
Colin Walters
c50648a594 libglnx: Bump to latest master, use new file copy API
The new `glnx_regfile_copy_bytes()` is better than the previous
`flatpak_copy_bytes()` in that it will use reflink/sendfile if available.

More information in 3a4d0f4684
2017-04-28 10:04:22 -04:00
Matthias Clasen
0b033fdc6f Merge pull request #743 from rffontenelle/patch-2
Brazilian Portuguese translation update
2017-04-27 22:33:36 -04:00
Matthias Clasen
3f2789b6f0 Merge pull request #744 from AsciiWolf/cs-update
Update Czech translation
2017-04-27 22:32:22 -04:00
AsciiWolf
9522b06a5d Update Czech translation 2017-04-27 19:39:48 +02:00
Rafael Fontenelle
ea42b266ad Brazilian Portuguese translation update 2017-04-27 14:20:15 -03:00
Georges Basile Stavracas Neto
0007edb7bd Ensure commits are available when checking for extra-data
After the introduction of linear progress reports based on
heuristics, Flatpak still couldn't make precise reports for
the extra-data field is contained in the commits. When we
were setting extra-data up, Flatpak didn't have the commits,
so it always failed.

Fix that by downloading the commits first, and then setting
up the extra-data fields.

flatpak/flatpak#609
2017-04-27 17:21:29 +02:00
Rafael Fontenelle
09c070f667 flatpak-run.c: valid locations, not types
Some previous g_set_error messages were related to 'unknown type', but this one about 'unknown location'. So it would probably be best to suggest 'valid locations', instead of 'valid types'.
2017-04-27 17:20:40 +02:00
Matthias Clasen
28dc9ecb4e Merge pull request #739 from AsciiWolf/cs-update
Update Czech translation
2017-04-26 21:30:17 -04:00
AsciiWolf
1f06e04aa4 Update Czech translation 2017-04-26 23:50:43 +02:00
Matthias Clasen
7ad15edb62 Improve display of partial extension sizes
The installed size in the metadata refers to the full
extension. If we have subpaths, the actual installed
size may be much smaller. Unfortunately, it appears
hard to obtain the actual size, so just hint at this
fact by displaying a '<' before the size.
2017-04-25 15:24:11 -04:00
Alexander Larsson
99b2d90724 Update pofiles 0.9.3 2017-04-24 22:14:29 +02:00
Alexander Larsson
00a75c48b6 Bump version to 0.9.3 2017-04-24 22:14:05 +02:00
Alexander Larsson
94d5f0a86e NEWS: Update for release 2017-04-24 22:12:51 +02:00
Alexander Larsson
8788f8a09e builder: Fix up unused variable warnings from clang 2017-04-24 21:48:57 +02:00
Alexander Larsson
8b13d3c5ee builder: Add progress reporing while downloading 2017-04-24 21:23:46 +02:00
Alexander Larsson
48d9cd8eae builder: Strip trailing whitespace in git submodule urls
Seen in the wild in https://github.com/Unvanquished/Unvanquished.git
2017-04-24 21:20:16 +02:00
Alexander Larsson
dddb4a2e44 export: Always make directories accessible
There is no reason ever to make a flatpak with a
directory that is not accessible, so make them all
readable and executable.
2017-04-24 15:51:56 +02:00
Alexander Larsson
fa996e704b builder: Update bzr bundling
Never check out directly from the cached dir, instead always
create a .flatpak-builder/bzr/ directory we can later
update from by branching from the cache and then rewriting
the parent location.
2017-04-24 15:24:05 +02:00
Alexander Larsson
f4f2625f59 builder: Change how we handle pre-existing git sources
We always have a local git checkout in .flatpak-builder/git
so that we can later update in it. However, if --extra-sources
is used and the git repo exists there, we use the data there
to clone the initial repo, to avoid lots of traffic on the network.

Additionally, if --disable-update is specified we just straight
clone the local cache repo, and then rewrite the origin to the
real one. This means we never do any network i/o to the original
pull.
2017-04-24 14:13:36 +02:00
Alexander Larsson
fbde709739 builder: Convert bundle sources to cached stage
Instead of mixing the source bundling with the build we make
it a separate step at the end, with cache support just like the
other stages.

Being at the end means we can reuse the cached stages from the
build if we enable bundle-sources after an existing build.

Also, this changes how the json and local files/patches are stored.
Now they are in a subdirectory called "manifest" in the sources
directory, with proper handling of relative pathnames for included
modules, etc. This also means we don't look for these file in the
extra-sources directory, but rather next to the json like we
do normally.
2017-04-24 13:52:38 +02:00
Alexander Larsson
47062137a5 fixup! common: Add flatpak_build_file[_va] helper 2017-04-24 12:23:20 +02:00
Alexander Larsson
a30be79d49 builder: Drop the storing of local files to data: uris
This just risks making the manifest very large, in case some
file is large, and it didn't even solve the whole problem,
which bundling sources is.
2017-04-24 12:00:00 +02:00
Alexander Larsson
0a0e311311 Don't bundle inline (data:) URIs
These are already bundled with the json itself.
2017-04-24 11:34:49 +02:00
Alexander Larsson
69123b564e builder: Make git patch apply verbose by default
Git is prone to ignoring patches in some cases, lets
at least print the details.
2017-04-24 10:29:57 +02:00
Alexander Larsson
c053c49ead Extend flatpak-builder test
We now test including modules, including doing
so recursively, and find patches and source files from
those.
2017-04-24 10:04:23 +02:00
Alexander Larsson
a5157d445b builder: Use context_find_in_sources_dirs to simplify code
Instead of open-coding the search everywhere. Also some places
are changed to use flatpak_build_file to further simplify
the code.
2017-04-24 09:02:42 +02:00
Alexander Larsson
b593ff04d3 builder: Add builder_context_find_in_sources_dirs
This centralizes the code for searching in the sources
directory.
2017-04-24 09:02:38 +02:00
Alexander Larsson
4a60c87958 common: Add flatpak_build_file[_va] helper
This makes it easy to construct GFiles
from a base dir and an argument list
of child elements.
2017-04-24 09:02:33 +02:00
Alexander Larsson
3058d413f0 builder: Use flatpak_mkdir_p instead of query + mkdir 2017-04-21 16:38:05 +02:00
Alexander Larsson
646f54da1b Merge branch 'bundle-sources' of https://github.com/erikos/flatpak into erikos-bundle-sources 2017-04-21 16:33:42 +02:00
Matthias Clasen
3b57b65205 Merge pull request #724 from AsciiWolf/cs-update
Update Czech translation
2017-04-20 18:17:42 -04:00
Simon Schampijer
bb11ef3c37 Merge remote-tracking branch 'upstream/master' into bundle-sources 2017-04-21 00:13:01 +02:00
Matthias Clasen
1b86e5c700 Merge pull request #723 from tanuk/docs-typo-fix
docs: Typo fix: "flatpack-builder" -> "flatpak-builder"
2017-04-20 17:56:47 -04:00
AsciiWolf
54234a7988 Update Czech translation 2017-04-20 21:15:42 +02:00
Tanu Kaskinen
e12b4ba362 docs: Typo fix: "flatpack-builder" -> "flatpak-builder" 2017-04-20 20:53:59 +03:00