Richard Hughes
914f636aa6
Return an error when the pending db could not be updated
2023-01-31 13:27:56 +00:00
dependabot[bot]
3df5bf7bde
build(deps): bump docker/build-push-action from 3 to 4
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 08:25:11 +00:00
Richard Hughes
fafc4bc740
trivial: Do not hardcode fwupdmgr as a binary name
2023-01-30 17:33:35 -06:00
Richard Hughes
e130735207
trivial: Record the install phase for future functionality
2023-01-30 15:12:06 +00:00
Richard Hughes
3881b6ffae
trivial: Do not inherit history from emulated devices
2023-01-30 15:12:06 +00:00
Richard Hughes
c5b81559e9
trivial: Remove some dead comments left in after debugging
2023-01-30 15:12:06 +00:00
Richard Hughes
32d6c7f8dd
Use indexes when building the quirk prepared queries
...
This can save 250us on each query (of which we do a *lot*), and reduces the
number of queries by about half if the user is using a libxmlb version that can
convert from `_BOUND_TEXT` to `_BOUND_INDEX_TEXT`.
The more devices detected, the bigger the difference, and without this patch
fixing libxmlb would break fwupd as we'e been searching with an index, but not
actually providing one.
2023-01-30 14:47:56 +00:00
Richard Hughes
6e34a90a12
trivial: Add FuProgress to fu_context_load_hwinfo()
...
TIL: fu_bios_settings_setup() takes over 50ms (10%!) at startup.
2023-01-30 14:47:44 +00:00
Richard Hughes
4d4c56fa75
trivial: Remove duplicate call to fu_engine_ensure_device_supported()
...
This is moderately expensive to call as it processes each requirement on each
release on each device, so the last thing we want to do is call it *twice*.
2023-01-30 14:47:44 +00:00
Richard Hughes
d6bb00a475
trivial: Update all fixes using markdownlint
2023-01-30 14:19:59 +00:00
Richard Hughes
b9da5362a0
trivial: Update all fixes using codespell
2023-01-30 14:19:59 +00:00
Richard Hughes
00e8aaefc6
Use a more compact JSON format using precommit
2023-01-30 14:19:59 +00:00
Richard Hughes
c1ffebae48
Remove unused API for setting backend tags
...
It turns out we do not want to know the current phase of the device, and we can
achieve the same thing tagging the GUsbDevice manually and clearing the events
at exactly the correct time.
2023-01-30 13:32:48 +00:00
Richard Hughes
234ff36cff
ti-tps6598x: Assign the DMC as the proxy rather than just the parent
...
We 'write through' the parent, and by telling fwupd this we can make better
decisions when emulating.
2023-01-30 12:00:04 +00:00
Richard Hughes
047b093904
Copy some flags from the proxy to the logical device
2023-01-30 12:00:04 +00:00
Mario Limonciello
3f105cf9ec
trivial: update fwupd-efi to 1.4
...
fwupd-efi 1.4 enforces that NX bit is set by default.
This won't affect most users, it should only affect those that compile
by hand and don't have fwupd-efi installed already.
2023-01-27 10:15:14 -06:00
Richard Hughes
70fb80cc64
trivial: Do not ask for polkit auth if the device is emulated
2023-01-27 15:47:44 +00:00
Richard Hughes
0e1d7608b3
trivial: Do not wait for the acquiesce delay if emulated
2023-01-27 15:47:44 +00:00
Frédéric Danis
3dcf24cae0
Propagate device tag to parent device
2023-01-26 15:37:35 +01:00
Richard Hughes
83229af12a
trivial: Correctly compress zip files in FuArchive
2023-01-26 14:36:57 +00:00
Richard Hughes
bc50d59f56
Ensure the new GUsbDevice is assigned in subclasses of FuUsbDevice
...
Re-incorporate the emulated USB devices when the backend device changes.
2023-01-26 14:04:01 +00:00
Richard Hughes
00ec2d8c25
trivial: Fix critical warning in future code
...
Both types need to be FuUdevDevice to compare the sysfs paths.
2023-01-26 14:04:01 +00:00
Richard Hughes
965a7c64d0
Do not return emulated devices from GetHistory
2023-01-26 14:03:52 +00:00
Richard Hughes
f3f951d3a7
trivial: Add fu_device_has_problem() to be consistent and hide details
2023-01-26 12:35:08 +00:00
Richard Hughes
354122e83c
Remove duplicate calls to fu_device_list_wait_for_replug()
...
The fu_engine_get_device() function is called at the start of each phase,
which calls fu_device_list_wait_for_replug() a second time.
Duplicate calls are at best confusing, and at worst could cause a 'device
failed to come back' failure.
2023-01-26 11:31:02 +00:00
Richard Hughes
110ef12cc7
Add a device problem for 'update-in-progress'
...
We already had this as an inhibit, but this was not translated client-side.
We also need to propagate the problem to the bootloader device if the device
replugs during firmware update.
2023-01-26 09:01:26 +00:00
Richard Hughes
854bec2e17
colorhug: Show the flash success value in debugging
2023-01-26 08:55:49 +00:00
Mario Limonciello
d26c847776
Add python3-pefile/python-pefile to CI build deps
...
This is so that it can be used by subproject fwupd-efi
2023-01-25 17:20:01 -06:00
Richard Hughes
3ab4e386c5
Fix hotplug events when emulating devices
2023-01-25 12:09:29 +00:00
Ivan Mikhanchuk
af5fb429c8
modem-manager: remove improper use of assert
...
FuSaharaLoader being NULL is normal for devices that only
support Firehose and don't use Sahara QDL port.
2023-01-24 20:54:43 -06:00
Jason Gerecke
8076090a00
wacom-usb: Retry set_report on failure
...
Sometimes the flash process will randomly hang and time-out when sending
data to the device. We currently do not use any retry logic, so if this
happens the flash attempt is treated as a failure. This can be a source
of worry or frustration, especially if subsequent manual retries fail
in a similar way.
Adding FU_HID_DEVICE_FLAG_RETRY_FAILURE to the list of flags used when
calling fu_hid_device_set_report allows fwupd to try sending a block
multiple times if such a time-out (or other error) occurs. This makes
the flash process less prone to failure.
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
2023-01-24 18:09:09 +00:00
Richard Hughes
ddd5140832
trivial: Fix tests to include 'emulated'
2023-01-24 15:41:01 +00:00
Richard Hughes
575871f505
Add fu_device_remove_backend_tag() for future use
2023-01-24 14:54:23 +00:00
Richard Hughes
ab04bb345c
trivial: Proxy the _SAVE_EVENTS flag even if set at runtime
2023-01-24 13:46:51 +00:00
Richard Hughes
ab27a8d335
Use the new GUsb API for loading by tag
...
Based on a patch by frederic.danis@collabora.com , many thanks.
2023-01-24 13:46:51 +00:00
Richard Hughes
90e5a58736
Do not make any of the HWIDs setup failures fatal
...
It's perfectly okay to have no HWIDs defined.
Should help with https://github.com/fwupd/fwupd/issues/5402
2023-01-24 12:45:36 +00:00
Richard Hughes
296fe5fb46
trivial: Add a device flag specifying it is emulated
2023-01-24 09:51:04 +00:00
Richard Hughes
3824af4756
trivial: Fix fuzzing with libxmlb from main, harder
2023-01-23 17:16:57 +00:00
Richard Hughes
bda113829a
trivial: Force enums to be uint64, harder
2023-01-23 17:11:23 +00:00
Richard Hughes
62eafd6c46
trivial: Fix fuzzing with libxmlb from main
2023-01-23 16:46:13 +00:00
Richard Hughes
53597cf045
Save all the FwupdDeviceFlags in the pending database
...
Force the compiler to treat them as uint64_t so that bitwise operations work.
At the moment flags greater than 1<<32 are just being silently ignored...
2023-01-23 16:40:22 +00:00
Richard Hughes
22c41252c5
Support unsetting specific device flags
...
This makes it possible to 'undo' the notification, for example.
2023-01-23 16:39:26 +00:00
Richard Hughes
5e64c883b0
trivial: Fix build fix when using ppc64le system
2023-01-23 13:19:53 +00:00
Richard Hughes
ff46480adb
trivial: Use %autochangelog in reference spec file
2023-01-23 13:19:53 +00:00
Richard Hughes
a6deceda32
Allow desktop software to inhibit the system to prevent all updates
...
On edge hardware a process may want to disable firmware updates as it might be
a bad time to allow an upgrade.
2023-01-23 13:14:23 +00:00
Richard Hughes
e528bc3940
trivial: post release version bump
2023-01-23 10:19:17 +00:00
Richard Hughes
44137021f2
Release fwupd 1.8.10
2023-01-23 10:17:45 +00:00
Daniil Lunev
8e1715779e
emmc: correct legacy GUID generation
...
It used to be generated with decimal, not hexadecimal values.
Change-Id: I2a6a5bdea50e2d08a7de9f65a1f9a03de29e1591
2023-01-22 20:40:38 -06:00
Richard Hughes
fd08eaefee
trivial: Fix bitwise operators in last commit
2023-01-22 08:29:20 +00:00
Richard Hughes
5d6cb83d1c
Add fu_context_remove_flag() for future use
2023-01-22 07:35:48 +00:00