Commit Graph

3233 Commits

Author SHA1 Message Date
Matthew Leeds
a218bdb282 docs: Document "flatpak update --appstream" better
The manpage description for flatpak-update's --appstream option says it
updates appstream data for the remote, but it's unclear that the remote
should be passed on the command line instead of a ref. This commit
updates the manpage to document that form of the command.

Closes: #1177
Approved by: alexlarsson
2017-11-16 08:00:05 +00:00
Alexander Larsson
763c27b008 Initialize variable for the !FLATPAK_ENABLE_P2P case
This variable is never actually read, as it is protected by
the ostree_metadata_checksum check, but some compilers warn about it.

Closes: #1178
Approved by: mwleeds
2017-11-16 07:58:46 +00:00
Patrick Griffis
61daf53674 docs: Add flatpak-search man page
Closes: #1176
Approved by: mwleeds
2017-11-16 07:26:28 +00:00
Matthew Leeds
c15d29f9d0 docs: Fix typo 2017-11-15 21:28:54 -08:00
Alexander Larsson
105f00b918 Update appstream data on "flatpak update" (#1169)
* Update appstream data on "flatpak update"

This is especially useful since we now have flatpak search which uses
this data.

* fixup! Update appstream data on "flatpak update"
2017-11-15 21:23:55 -08:00
Matthew Leeds
c429951755 common: Improve output for empty remote URLs
If a remote has an empty url (which can happen for automatically created
remotes from some bundle files) we can't fetch from it. So for example
if you use "flatpak remote-ls --updates" it gives you a cryptic error
message from OSTree ("Failed to parse uri: "). This commit changes
flatpak to instead print an error message that mentions the remote name.
For backwards compatibility reasons, a remote with an empty url is
considered disabled, so say so.

Closes: #1165
Approved by: alexlarsson
2017-11-15 09:05:37 +00:00
Matthew Leeds
737b1b0950 common: Print debug info when fetching summaries
Sometimes fetching a remote repository's summary file fails and it can
be hard to tell what went wrong because even with --verbose flatpak
doesn't tell you which remote it's fetching from. Add a debug statement
to fix that.

Closes: #1165
Approved by: alexlarsson
2017-11-15 09:05:37 +00:00
Matthew Leeds
61d1c69836 docs: Fix broken references
These commands were renamed a while back.

Closes: #1167
Approved by: alexlarsson
2017-11-14 12:04:59 +00:00
Alexander Larsson
a6f65d3b7c Add --log-*-bus to flatpak build
Closes: #1160
Approved by: alexlarsson
2017-11-14 11:57:30 +00:00
AsciiWolf
b2548f34d2 Update Czech translation
Closes: #1162
Approved by: alexlarsson
2017-11-13 14:17:58 +00:00
AsciiWolf
b0cf7baefd Add colon to the Uninstalling string
Closes: #1163
Approved by: alexlarsson
2017-11-13 14:17:30 +00:00
AsciiWolf
6f186e5987 Make the Uninstalling string translatable
Closes: #1163
Approved by: alexlarsson
2017-11-13 14:17:30 +00:00
Matthew Leeds
686d7cfccc search: Check substrings of app IDs, not just prefixes
Due to the way as_app_search_matches() works, "flatpak search" only
checks if the search text is a prefix of an element of the app ID, not
if it's any substring. Add a substring check, so for example you can
find SuperTuxKart using "flatpak search tuxkart".

Closes: #1161
Approved by: TingPing
2017-11-11 02:23:56 +00:00
AsciiWolf
ac04e5fca7 Update Czech translation
Closes: #1158
Approved by: mwleeds
2017-11-09 23:55:28 +00:00
Alexander Larsson
ec40383e5f Better phrasing for remote add prompt
As proposed in https://github.com/flatpak/flatpak/issues/1141

Closes: #1157
Approved by: mwleeds
2017-11-09 23:49:36 +00:00
AsciiWolf
8d2326fd77 Update Czech translation
Closes: #1148
Approved by: mwleeds
2017-11-08 22:55:24 +00:00
Philip Withnall
58157e7ec7 ls-remote: Fix crash when ostree-metadata ref exists in remote
The code assumes that *all* refs in a remote contain a slash, which
technically is not the case, and pragmatically is definitely not the
case once the remote has an ostree-metadata ref.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #1153
Approved by: mwleeds
2017-11-08 22:48:12 +00:00
Philip Withnall
321b931bb2 repo: Improve error messages if no repository metadata is available
If `flatpak repo --info` is run on a repository which doesn’t have a
summary file, or an ostree-metadata branch, it previously printed a very
unhelpful, unadorned, ‘No such file or directory’. Add a bit more
context to that error message.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #1155
Approved by: cgwalters
2017-11-08 19:55:08 +00:00
Alexander Larsson
28229056d2 Remove C99 loop initialization
On RHEL7 compiler I got things like:

app/flatpak-builtins-search.c:196:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for (guint j = 0; j < remote_stores->len; ++j)

Maybe we should allow this and tweak the warnings, but for now, just make it build.

Closes: #1151
Approved by: alexlarsson
2017-11-06 09:03:50 +00:00
Piotr Drąg
c59bacd054 Update Polish translation
Closes: #1145
Approved by: mwleeds
2017-11-03 19:02:00 +00:00
Patrick Griffis
0f33ba53ff Add search builtin
This allows searching for applications easily greatly improving
the UX of the cli. This relies upon appstream data which currently
must be updated with `flatpak update --appstream`.

Closes: #1136
Approved by: mwleeds
2017-11-02 00:45:43 +00:00
Philip Withnall
3f7321292b lib/installation: Tidy up memory management in get_system_installations()
This introduces no functional changes, but makes it a bit more obvious
that we do temporarily have ownership of the FlatpakInstallation
instance.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #1138
Approved by: alexlarsson
2017-11-01 10:23:15 +00:00
Philip Withnall
b20818a624 lib/installation: Don’t error from flatpak_get_system_installations()
If a particular system installation is inaccessible (for example,
because it doesn’t currently exist, and we don’t have permissions to
create it), don’t error out of flatpak_get_system_installations().
Instead, do what the documentation says will happen, and ignore the
failure (emit a warning message about it).

The function continues to return an error if *no* installations could be
found.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #1138
Approved by: alexlarsson
2017-11-01 10:23:15 +00:00
AsciiWolf
daf65526e7 Update Czech translation
Closes: #1132
Approved by: alexlarsson
2017-10-27 10:34:33 +00:00
Alexander Larsson
2a0c17976f Update pofiles 0.10.0 2017-10-26 11:35:18 +02:00
Alexander Larsson
5b9f55e4b8 common: Unlink the old flatpak-cache symlink if we're replacing it 2017-10-26 10:55:20 +02:00
Alexander Larsson
ec8efa4e91 Fix .flatpak-cache symlink 2017-10-26 10:53:17 +02:00
Alexander Larsson
3f1ffd12cd Update version to 0.10 2017-10-26 10:17:39 +02:00
Alexander Larsson
01ffa28388 Update NEWS for release 2017-10-26 10:17:35 +02:00
Alexander Larsson
cfb34ea888 common: Make ostree bug workaround version checked
The commitstate check in parent dir was fixed in ostree 2017.13,
so we only apply the workaround for previous versions.

Closes: #1131
Approved by: alexlarsson
2017-10-26 07:43:23 +00:00
Kukuh Syafaat
e1ca3c2515 Update Indonesian translation
Closes: #1130
Approved by: mwleeds
2017-10-25 16:21:12 +00:00
Alexander Larsson
edfd6eae83 When updating from partial install, disable static deltas
The delta can contain references to files in the parent which don't
exist locally, which breaks.

Closes: #1126
Approved by: alexlarsson
2017-10-25 06:44:40 +00:00
Alexander Larsson
893c53d8e7 flatpak_dir_update: Fix leak
The return value of flatpak_deploy_data_get_subpaths needs a (shallow)
free, so put it in a separate autofree variable.

Closes: #1126
Approved by: alexlarsson
2017-10-25 06:44:40 +00:00
Alexander Larsson
a89de9dacc Use FlatpakBwrap in run/build
This is a mostly trivial conversion to use FlatpakBwrap instead
of separate argv_array/fd_array/envp variables. Anywhere it is
trivial to pass the bwrap we do, but for anything complicated
we keep the old code with separated args.

Closes: #1114
Approved by: alexlarsson
2017-10-24 08:22:07 +00:00
Alexander Larsson
1be8324d3a run: Add FlatpakBwrap
This is a wrapper around the argv, envp and fd array that
are used in the code when invoking bubblewrap. We collect them
in a single object to avoid passing a lot of arguments around.

Closes: #1114
Approved by: alexlarsson
2017-10-24 08:22:07 +00:00
Yuri Chornoivan
d62491a4f4 Update Ukrainian translation
Closes: #1125
Approved by: alexlarsson
2017-10-24 07:19:40 +00:00
Alexander Larsson
20162bb382 lib: Add api for getting and setting config options
This is primarily for setting the language atm

Closes: #1123
Approved by: alexlarsson
2017-10-20 20:06:38 +00:00
Alexander Larsson
e61071cb7b config: Move all references of "xa." prefix for config into FlatpakDir
There is no need to expose this in the API, especially the library API.

Closes: #1123
Approved by: alexlarsson
2017-10-20 20:06:38 +00:00
Alexander Larsson
b18d1c2321 Add system-helper support for configuring language.
Closes: #1123
Approved by: alexlarsson
2017-10-20 20:06:38 +00:00
Robert McQueen
d827322905 [common/flatpak-run] add /dev/mali0 to --device=dri
Apparently this also appears with different Mali versions.
Closes: #1113
Approved by: alexlarsson
2017-10-19 11:18:35 +00:00
Alexander Larsson
a4073b1a79 Fix issue with extension ld.so.conf files being empty
If regenerate_ld_cache was used then the fds involved in the
ld.so.conf files were used twice, which means they are at
the end the second time. So, we tweak the child setup to always
seek back to the start of all fds.

Closes: #1112
Approved by: alexlarsson
2017-10-18 08:01:05 +00:00
Philip Withnall
3795d5b819 common: Add missing space; improve code formatting
Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #1108
Approved by: alexlarsson
2017-10-17 10:22:27 +00:00
Philip Withnall
efa58b54f2 common: Remove an unnecessary conditional
fd_array is always non-NULL at this point; adding a conditional there
confuses the code, confuses static analysis, and leaves open the
possibility for ld_so_fd to be leaked if that conditional is not taken
in future.

Coverity CID: #1457790

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #1108
Approved by: alexlarsson
2017-10-17 10:22:27 +00:00
Philip Withnall
d09a73d440 common: Add error handling around a symlink() call
Spotted by Coverity as CID #1457791.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #1108
Approved by: alexlarsson
2017-10-17 10:22:27 +00:00
Gunnar Andersson
98c21473fc Fix whitespace issues (remove TAB usage)
Signed-off-by: Gunnar Andersson <gandersson@genivi.org>

Closes: #1107
Approved by: mwleeds
2017-10-17 06:21:07 +00:00
Alexander Larsson
87ed5378db Add missing translation markers
As mentioned in https://github.com/flatpak/flatpak/issues/1102 we
lack translations for some strings. This fixes the ones i found in
a quick check.

Closes: #1106
Approved by: mwleeds
2017-10-16 19:03:06 +00:00
AsciiWolf
3c5f3e6d2f Update Czech translation
Closes: #1101
Approved by: mwleeds
2017-10-13 23:05:23 +00:00
Kukuh Syafaat
48ffc0fda2 Update Indonesian translation
Closes: #1100
Approved by: mwleeds
2017-10-12 17:50:22 +00:00
Piotr Drąg
33a9ccacd6 Update POTFILES.in
Closes: #1099
Approved by: mwleeds
2017-10-12 05:23:24 +00:00
Alexander Larsson
05e2afa8ce Fix up subpath handling
Whenever we add a add a local dependency we add both the languages
based on the current locale, and (in case of an update) whatever was
installed before. We also properly merge this with any normally
specified (non-dependency) update (typically happens e.g. when just
doing a "flatpak update", which adds .Locale updates both as
dependencies and regular updates).

This means you can just configure a new language and then flatpak
update will pull everything with those languages.

Closes: #1098
Approved by: alexlarsson
2017-10-11 12:48:07 +00:00