Commit Graph

628 Commits

Author SHA1 Message Date
Richard Hughes
c8646aff32 Show a more detailed error when installing firmware on the wildcard
Based on a patch by Mario Limonciello, many thanks.
2016-07-04 13:06:17 +01:00
Richard Hughes
bd40528575 Don't make failures critical while checking versions or locked state
Based on a patch by Mario Limonciello, many thanks.
2016-07-04 13:00:54 +01:00
Richard Hughes
3ab17e63dd trivial: Refactor the update helper
No logic changes.
2016-07-04 12:37:22 +01:00
Richard Hughes
346ea88135 trivial: Move a conditional out of the way 2016-07-04 12:31:06 +01:00
Mario Limonciello
867b68894a trivial: Add a Documentation key to systemd units 2016-07-01 15:46:29 -05:00
Mario Limonciello
033c4511f7 trivial: correct typographical error in dfu-target debug statements 2016-07-01 15:40:31 -05:00
Mario Limonciello
4a586715e1 in get-details output, display update_name rather than Unknown Device 2016-06-29 09:30:03 -05:00
Richard Hughes
ce38d94d5e trivial: Get rid of useless internal-only gtk-doc markup 2016-06-29 11:25:25 +01:00
Richard Hughes
a4a2c18ac8 Use the correct firmware blob when installing a composite device update 2016-06-29 11:08:29 +01:00
Richard Hughes
fe5cc9021c Add support for installing against multiple devices from a CAB file
Based on a set of patches from Mario Limonciello <mario_limonciello@dell.com>,
many thanks.
2016-06-29 11:08:29 +01:00
Richard Hughes
db468eef67 trivial: Explicitly tag downgrades in the helper 2016-06-29 10:11:53 +01:00
Richard Hughes
4eb527f873 Use a private gnupg key store
Although it's convenient that you can just log in as root and add another
trusted key, it makes the selinux developers unhappy. Use a private keystore
in /var/lib/fwupd/gnupg to avoid the possibility of a somehow hacked fwupd
being able to export the root gpg secrets if any happened to exist.

If you've trusted keys other than the LVFS for metadata or firmware you'll need
to re-import them into this new location.

See b7f12bd377

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1303531
2016-06-28 09:18:45 +01:00
Richard Hughes
4921bd9770 Ensure the update ID is set when getting local firmware details 2016-06-27 11:17:43 +01:00
Mario Limonciello
8eaadd09d8 In get-details output, display the blob filename
This makes it easier to debug issues with CAB files with multiple
payloads
2016-06-22 15:01:09 -05:00
Mario Limonciello
c2cbd1ab6f trivial: s,cd_,fu_, in a few places in fu-main 2016-06-22 14:59:42 -05:00
Mario Limonciello
2c5ff43556 trivial: correct fu-debug.h definitions 2016-06-22 14:57:43 -05:00
Richard Hughes
6f6c36e7ab Merge pull request #52 from lantw44/master
build: Fix gtk-doc build when srcdir != builddir
2016-06-22 09:16:00 +02:00
Ting-Wei Lan
da63e94199 build: Fix gtk-doc build when srcdir != builddir 2016-06-14 10:47:32 +08:00
Richard Hughes
fcceb2f54a trivial: post release version bump 2016-06-13 13:37:17 +01:00
Richard Hughes
d06c3f0d4a Release fwupd 0.7.2 2016-06-13 13:30:03 +01:00
Richard Hughes
d0583ae340 Only claim the DFU interface when required
It appears that some expensive USB sound cards do not like the DFU interface
being claimed at the same time the kernel starts using a different endpoint.

I suspect this is a device bug or limitation in some reference implementation
somewhere, but seeing as we only need the interface when verifying or writing
new firmware the sensible thing to do is not claim it until required.

Fixes: https://github.com/hughsie/fwupd/issues/50
2016-06-08 16:42:49 +01:00
Richard Hughes
16261e3f76 libdfu: Show the DFU protocol version in 'dfu-tool list' 2016-06-08 15:14:06 +01:00
Richard Hughes
10d4c84fbd libdfu: Add DfuVersion enumerated values 2016-06-08 14:58:11 +01:00
Richard Hughes
11dc9ace51 trivial: Fix up some warnings spotted by new GCC 2016-06-07 10:11:00 +01:00
Richard Hughes
4580ed128b trivial: Prevent critical warning when verifying 2016-06-02 08:50:59 +01:00
Richard Hughes
0e3aae27f8 trivial: Add a tiny doc explaining what to change next soname break 2016-05-29 09:57:24 +01:00
Richard Hughes
7289a6b5f0 Add a GetDetailsLocal() method to eventually replace GetDetails()
This allows us to return multiple results from one file, for instance where the
firmware.cab file contains multiple metainfo.xml files.

This allows us to show all the entries in the firmware file, rather than
searching for the installed device that matches and falling back to just the
first listed item.
2016-05-29 09:57:24 +01:00
Richard Hughes
8ac07dcd1c trivial: Modularize the GetDetails call 2016-05-29 09:27:56 +01:00
Richard Hughes
c1a08c75d8 Support returning multiple GUIDs from GetDetails 2016-05-25 09:47:40 +01:00
Richard Hughes
b08fcebab4 trivial: Remove the now-unused .inf from the example cab file 2016-05-25 09:34:38 +01:00
Mario Limonciello
ff94ccde59 Enforce allowing providers to take away flash abilities
The flags for ALLOW_OFFLINE and ALLOW_ONLINE aren't currently used to
block a provider from flashing a file by hand.
2016-05-18 00:38:08 -05:00
Mario Limonciello
3321d7ea09 Test for a locked device when trying to install firmware update
Although other checks may also fail, the error shown when trying
to install a CAB that matches a GUID on the system that is locked
should be a message to unlock the device.
2016-05-18 00:37:59 -05:00
Mario Limonciello
f93c00dcf4 Re-read flags for a device after a provider's unlock routine is done
It's possible that the flags may have been altered in the provider
unlock routine.  These changes get discarded if not re-read.
2016-05-18 00:37:51 -05:00
Richard Hughes
043bc15f6d Allow metainfo files to match only specific revisions of devices
For example, matching on the 'USB\VID_0000&PID_0000&REV_0000' GUID rather than
the 'USB\VID_0000&PID_0000' GUID.

This is now possible as we can specify multiple GUIDs for a device.
2016-05-17 18:46:25 +01:00
Richard Hughes
feb8965d2e Add fu_device_get_alternate()
This daemon-only method allows a provider to associate one device with another.

Inspired by a patch by Mario Limonciello <mario_limonciello@dell.com>.
2016-05-17 16:27:59 +01:00
Richard Hughes
6561c8daf7 Only return updatable devices from GetDevices()
Fixes some of https://github.com/hughsie/fwupd/pull/47
2016-05-17 16:24:09 +01:00
Richard Hughes
2c553607e3 trivial: Fix gtk-doc wording of the device flags 2016-05-17 16:05:49 +01:00
Richard Hughes
99147f180b Allow devices to have multiple assigned GUIDs 2016-05-17 09:35:04 +01:00
Richard Hughes
069392c82c trivial: post release version bump 2016-05-13 14:53:54 +01:00
Richard Hughes
a9385b0cb8 Release fwupd 0.7.1 2016-05-13 14:52:32 +01:00
Richard Hughes
2fc5b88503 trivial: Only show the trust flags when there is an update 2016-05-13 14:48:20 +01:00
Mario Limonciello
a1cebd6e67 trivial: treat flashes_left as an unsigned integer 2016-05-11 15:21:22 -05:00
Mario Limonciello
71a5b98d30 Add support for a --force flag to override provider warnings
Under some circumstances a provider may want to prevent a user from
performing a flash without additional user interaction.

Providers can opt into this behavior by checking for
FWUPD_INSTALL_FLAG_FORCE in the update routine.
2016-05-10 15:41:16 -05:00
Mario Limonciello
74037577f8 src/Makefile.am: reshuffle so enableable bits are only referenced when on 2016-05-10 12:57:45 -05:00
Mario Limonciello
f81f42a84c Add support for a new device field "Flashes Left".
For devices that can report the number of flash cycles supported this field can
be used to prevent allowing the device to be flashed again.
2016-05-10 12:21:09 -05:00
Richard Hughes
21542abb0a Set the device description when parsing local firmware files
We were overwriting the update description, so we never noticed before.
2016-04-29 10:55:16 +01:00
Richard Hughes
662920ccf7 Show 'Unknow Device' in fwupdmgr when a device name is not set 2016-04-28 18:28:16 +01:00
Richard Hughes
dde7a2f6e6 Re-match devices when the AppStream metadata is updated
This allows us to notify clients watching for the 'supported' property for
new devices added to the LVFS.
2016-04-28 16:56:23 +01:00
Richard Hughes
422e866bc8 Match the AppStream metadata after a device has been adedd
This allows us to match specific properties by watching the ::DeviceChanged()
signal.
2016-04-28 16:56:23 +01:00
Richard Hughes
8ca33784ec Add device-added, device-removed and device-changed signals
This allows us to watch a specific device from client code without
re-requesting the device list on every Changed() signal.
2016-04-28 16:56:23 +01:00