Commit Graph

9606 Commits

Author SHA1 Message Date
Richard Hughes
ced2fa1ca4 trivial: Fix the Fedora CI 2020-08-06 15:31:58 +01:00
Simon McVittie
fc974c7240 trivial: Don't skip methods on plain structs
This resulted in losing g_usb_source_set_callback@LIBGUSB_0.1.0 which causes a
build failure when building gusb as a subproject, and also the little-used
fu_chunk_to_string() from libfwupdplugin.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2020-08-06 15:31:58 +01:00
Richard Hughes
1a58062be9 Refresh the handle to device before testing ANOTHER_WRITE_REQUIRED
fu_engine_install_blob may result in the device being reset during attach or
detach and needing to be replugged.
The device handle we're holding may be stale, but it is still used by the do
while loop itself for the ANOTHER_WRITE_REQUIRED test.

Similar to the other functions in the loop, let's get the device handle by id
in case that happened.

Original patch by Benson Leung <bleung@chromium.org>, many thanks.

Fixes https://github.com/fwupd/fwupd/issues/2297
2020-08-03 19:30:01 +01:00
Benson Leung
8b9f9ab47a Save custom flags on device replace
New instances of a device may be interested in custom flags. Copy them
over on fu_device_list_replace.

fixes #2298
2020-08-03 18:02:43 +01:00
Mario Limonciello
27c49542ef trivial: try to fix circleci news generation script 2020-07-30 11:12:16 -05:00
Mario Limonciello
5a45f408e6 trivial: try to fix circleci news generation script 2020-07-30 11:12:03 -05:00
Richard Hughes
4a0d14b097 trivial: Fix the quirk entry for the Star LabTop Mk IV 2020-07-30 15:13:00 +01:00
Mario Limonciello
6fa82f4f88 release for unstable 2020-07-30 08:59:45 -05:00
Mario Limonciello
5e33b2c7e9 Regenerate control file
* Regenerate control file
  - Refresh dependencies for 1.4.x
  - Drop Jared as uploader
2020-07-30 08:59:31 -05:00
Mario Limonciello
d7e754ae37 drop now unnecesssary patch for libflashrom 2020-07-30 08:58:19 -05:00
Mario Limonciello
800860a978 refresh symbols 2020-07-30 08:51:44 -05:00
Mario Limonciello
d98fd0f1a2 Release fwupd 1.4.5
-----BEGIN PGP SIGNATURE-----
 
 iQFIBAABCAAyFiEEFj61ARkiXbPfj0nqF6y6jfqXDhcFAl8imFkUHHJpY2hhcmRA
 aHVnaHNpZS5jb20ACgkQF6y6jfqXDhfchAf9HFDEFvBYBxV0gk/+D1EnsunEKHPt
 3VmB6mtrsvOcyHL7uePdSL7vHLngPAaVKgnkyGNCT6XrLRAQd8A0x4O+FgCDt6fO
 +legNOuxFggdijhkKfNAB6nKMMbc1LdS7GEDUzuDQ8kZstbwDTbex35NTX/q+uWr
 AtEZHNQ69XVpal4UYjxERsVx3AMAvYbiDiLd5/2GJclyLrBtlgaqdDb0CivZBNaO
 QY0qYb6x+FXKKoi86p1l2vhA4nHy5d/K8IXceZxHaq7ISzDYtZt5H/HCZnV1ifuq
 4PwHNapfvUTsEEJGzqzLjYKLpVAyeR6lhexR744AK1sbVurwYvcjovbeXw==
 =EbDN
 -----END PGP SIGNATURE-----

Merge tag '1.4.5' into debian

Release fwupd 1.4.5
2020-07-30 08:45:20 -05:00
Richard Hughes
3eece92c31 trivial: post release version bump 2020-07-30 10:54:17 +01:00
Richard Hughes
37d3879e55 Release fwupd 1.4.5 2020-07-30 10:52:25 +01:00
Richard Hughes
b76b4f8deb trivial: Make the bash completion script reflect reality 2020-07-29 15:05:15 +01:00
Richard Hughes
45adc67c82 trivial: Fix aarch64 Fedora build 2020-07-29 15:05:15 +01:00
Richard Hughes
b9a4e05507 trivial: Fix fu_efivar_set_data() gtk-doc header 2020-07-29 14:22:52 +01:00
Richard Hughes
843da1bc02 vli: Rename FuVliUsbhubI2cDevice to FuVliUsbhubMsp430Device
The I²C proxy specification is not always shared with all other devices as
I originally hoped, instead there are other legacy devices that use different
sets of I²C commands.

Un-share various bits of code to allow for additional I²C devices to be added.

No logic changes.
2020-07-29 14:16:19 +01:00
Mario Limonciello
880153ed14 trivial: modem-manager: fix a logic error 2020-07-29 14:16:19 +01:00
Ryan Lee
af8bbb88b0 ccgx: remove verify flag in plugin 2020-07-29 14:16:19 +01:00
Ryan Lee
79805f5101 ccgx: add extra 45% removal time for worst case 2020-07-29 14:16:19 +01:00
Emily Miller
eb1569bdfa vli: Add dual-image feature for VL103 backup firmware 2020-07-29 14:09:23 +01:00
Richard Hughes
582ec682f8 trivial: Export fwupd_client_ensure_networking()
This is required when the calling application needs the low-level soup-session
with the user agent set correctly rather than using the helper methods like
fwupd_client_download_bytes().

This is what GNOME Software needs to handle the GsApp progress completion.
2020-07-29 14:08:39 +01:00
Richard Hughes
8dbe6f492d libfwupd: Add fwupd_client_install_release()
This allows us to remove a lot of copy-and-paste code in GNOME Software.
2020-07-29 14:08:39 +01:00
Richard Hughes
9bd2161972 libfwupd: Add fwupd_client_install_bytes()
Sometimes you do not have a filename and just a blob of memory.
2020-07-29 14:08:39 +01:00
Richard Hughes
5e2c657bbc libfwupd: Move GUnixInputStream-creating functions to common code
We'll need to use them from other methods soon.
2020-07-29 14:08:39 +01:00
Richard Hughes
bf3e0b227e libfwupd: Add fwupd_client_refresh_remote()
This takes care of downloading the correct files and allows remotes to be
refreshed from other CLI and GUI tools without copying large chunks of code.

This also allows us to download the metadata without writing two temp files
to the users cache directory. Although not security sensitive, it's probably
not a good idea if we can avoid it.
2020-07-29 14:07:21 +01:00
Richard Hughes
c26d13b059 libfwupd: Add fwupd_client_update_metadata_bytes()
Sometimes the data is coming from a blob of memory and not a cached file, so
use a memfd to create a file descriptor that can be passed to the daemon.
2020-07-29 14:07:05 +01:00
Richard Hughes
f7edc1db17 libfwupd: Split up a function for future new API 2020-07-29 14:06:55 +01:00
Richard Hughes
5bf5a8e28e libfwupd: Add fwupd_remote_load_signature_bytes() for when a file is not available 2020-07-29 14:06:46 +01:00
Richard Hughes
0801b592ec fwupd: Export fwupd_client_download_bytes() into the client library
The logic here is that we can use one central session for all client actions.

Also, set the user agent for the *runtime* version of fwupd -- it's the runtime
version we use when checking capabilities, rather than the built-against
version. This would also explain why there are so many very obsolete versions
of fwupd being recorded on the LVFS...
2020-07-29 14:06:13 +01:00
Richard Hughes
30a351066b trivial: Move the report success report to common code
This would allow us to use it from fwupdagent in the future.
2020-07-29 13:32:14 +01:00
Richard Hughes
ed8ca566ee trivial: Simplify marking devices as reported 2020-07-29 13:24:17 +01:00
Richard Hughes
621ffb9be5 trivial: Simplify some reporting code
This is not a fast path, so make getting the FwupdRemote simpler.
2020-07-29 13:24:08 +01:00
Richard Hughes
5210e0f2b8 trivial: Move some code for future use 2020-07-29 13:23:48 +01:00
Richard Hughes
0b2a5e1d0c libfwupd: Do not export non-introspectable symbols without a version
This is needed for future functionality.
2020-07-29 13:23:48 +01:00
Richard Hughes
3ee8357589 trivial: Fix Debian CI 2020-07-29 13:22:05 +01:00
Richard Hughes
16479a495f thelio-io: Set the runtime version to 0.0.0 for pre-1.0.0 firmware 2020-07-29 13:21:58 +01:00
Richard Hughes
a121e7ea95 thelio-io: Add the DFU instance ID as a counterpart only
This means we do not add possibly unwanted bootloader-specific quirks to the
runtime device.
2020-07-29 13:21:50 +01:00
Richard Hughes
e02bbc4062 nitrokey: Define the protocol on the runtime device
This prevents a daemon warning.
2020-07-29 13:21:43 +01:00
Richard Hughes
45ec463e32 libfwupdplugin: Set the physical device ID for i2c devices 2020-07-29 13:21:37 +01:00
mendel5
aec3c242f5 fu-plugin-synaptics-mst.c: replace github.com/hughsie with github.com/fwupd 2020-07-29 13:21:28 +01:00
Ryan Lee
832fd58a5b ccgx: Modify readme to remove customer info 2020-07-29 13:01:58 +01:00
Richard Hughes
fb6f1a11a9 trivial: Add some documentation for the ApprovedFirmware config key 2020-07-29 13:01:31 +01:00
Richard Hughes
0bf72dd065 fwupd: Split out two trivial helpers 2020-07-29 13:00:55 +01:00
Sean Rhodes
c7edf611c3 Added quirk for LabTop Mk IV 2020-07-29 12:58:02 +01:00
Ryan Lee
0b5ed33b23 ccgx: Modify readme to remove customer info 2020-07-29 12:01:31 +01:00
Emily Miller
b700783bf6 vli: Add dual-image feature for VL103 backup firmware 2020-07-29 10:57:02 +01:00
mendel5
db2906d49c fu-plugin-synaptics-mst.c: replace github.com/hughsie with github.com/fwupd 2020-07-28 14:28:15 -05:00
mendel5
92f8e92daa pull_request_template.md: replace github.com/hughsie with github.com/fwupd 2020-07-28 14:28:15 -05:00