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
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
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
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
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
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
fcffefee26
Replace openat() calls from libgsystem
2016-08-22 14:12:31 +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
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
Alexander Larsson
5ee07d79c8
common: Add flatpak_complete_ref()
...
This is for commandline completion of ref:s
2016-08-19 16:51:24 +02:00
Matthew Leeds
392c597c5f
utils: Print a debug message when launching subprocesses
...
This commit makes flatpak print a debug message (which only appears to
the user if the -v option is used) whenever a subprocess is launched.
This should make debugging easier, both for flatpak users and
developers.
2016-08-05 14:15:19 -04:00
Matthias Clasen
75218c4a65
Fix license headers
...
We were referring to the nonexisting "version 2" of the
Lesser GPL. It should be "version 2.1".
2016-07-29 14:27:49 -04:00
Matthias Clasen
8732c5a8fb
Translate errors
...
These show up in the UI and often refer to (translated) parts of
the UI.
2016-07-23 14:37:02 -04:00
Cosimo Cecchi
3d2a42ddf3
utils: fix double loop when extracting icons for appstream
...
When trying to extract icons to regenerate the appstream, we are looping
over the entire file every time, instead of only trying to copy icons
for the application ID we're looking at the moment.
This is most likely benign, but it causes a lot of "Error copying icon:
No such file or directory:" spew when calling flatpak build-update-repo.
2016-07-21 13:17:36 -07:00
Alexander Larsson
b5204c908d
builder: Clear mtime to 1, not 0, to match what new ostree does
2016-07-01 14:25:22 +02:00
Alexander Larsson
81e61391be
utils: Add flatpak_summary_match_subrefs
...
This is useful to do extension matching in summaries
2016-06-30 11:42:39 +02:00
Alexander Larsson
5897ddd7ef
utils: Add flatpak_get_current_locale_subpaths()
2016-06-30 11:41:12 +02:00
Alexander Larsson
0be93ed1dc
extensions: Always create a tmpfs for subdirectory extensions.
...
This makes sure we can actually create a directory as needed, and not
having to have every subdirectory pre-created in the runtime.
2016-06-29 15:56:28 +02:00
Alexander Larsson
853227a3d6
extensions: Minor cleanup
...
We now store the path to the extension files in the FlatpakExtension
returned from list_extensions instead of having each called look
them up.
2016-06-29 12:20:16 +02:00
Bastien Nocera
2facf8bbf0
utils: Add flatpak_spawnv() helper
...
This will allow callers to easily add new parameters without tearing
their hair out with varargs.
2016-06-28 14:24:16 +02:00
Alexander Larsson
44b6c31efc
fix warning
2016-06-28 11:41:35 +02:00
Alexander Larsson
bde74d25d4
common: Add flatpak_get_arches() helper
2016-06-23 11:05:42 +02:00
Alexander Larsson
cc08083543
common: Add flatpak_zero_mtime helper
...
This recursively sets the mtime to 0.
2016-06-08 11:11:01 +02:00
Sam Spilsbury
7bd6c9b277
completion: Don't show one-time switches already in use
2016-06-02 21:38:16 +08:00
Sam Spilsbury
082821288e
completion: Store original argv and argc
...
We deep-free the original argv here, since it isn't modified.
2016-06-02 21:38:16 +08:00
Alexander Larsson
5c23f9bd9d
Don't create empty "repo*" directories in the CWD
...
We were using the wrong dirfd, so we created empty files in the
current directory.
2016-06-01 10:23:52 +02:00
Alexander Larsson
8533f06dc0
Add more completions
2016-05-30 14:54:22 +02:00
Alexander Larsson
eeaa832095
Replace bash completion shell script with C-based version
...
This doesn't do everything yet, but its got the basics covered.
2016-05-27 16:30:13 +02:00
Josh Soref
c33b5b52d7
spelling: whether
2016-05-27 06:49:26 +00:00
Josh Soref
8412bcf4c1
spelling: whereas
2016-05-27 06:49:15 +00:00
Alexander Larsson
e020803554
utils: remove_dangling_symlinks() - fix leak
...
We were not freeing the iterator.
2016-05-18 13:42:58 +02:00
Alexander Larsson
0098164cd6
Register dbus errors for FLATPAK_ERROR
...
This allows us to transparently pass them from the system helper.
2016-05-12 22:03:42 +02:00
Alexander Larsson
2ef6d9d5d9
common: Remove FlatpakDirError in favour of FlatpakError from the lib
2016-05-12 16:43:16 +02:00
Alexander Larsson
e23bc2b7a6
Move flatpack_error quark to common so that the common code can use it
2016-05-12 16:33:48 +02:00
Richard Hughes
5ff8a00078
Show the error when we fail to build AppStream metadata
2016-05-12 11:07:30 +02:00
Alexander Larsson
4da7dc4742
appstream: Generate root dir of appstream branch world-readable
2016-05-11 12:23:55 +02:00
Alexander Larsson
4f9ea6bb57
Remove unused variables
...
This fixes warnings from clang
2016-05-09 12:49:54 +02:00
Alexander Larsson
5e9b247d26
Migrate ~/.local/share/xdg-app to ~/.local/share/flatpak
2016-05-09 12:21:28 +02:00
Alexander Larsson
8abbc0186e
Rename everything but the on-disk location to flatpak
2016-05-09 11:11:55 +02:00
Alexander Larsson
c24528d369
Rename source files to flatpak
2016-05-09 09:00:20 +02:00