Commit Graph

394 Commits

Author SHA1 Message Date
Mario Limonciello
e6e445ee4c Validate that the dbus system bus is available before running libfwupd tests
In a chroot (or buildd) environment dbus isn't necessarily available so this
test will always fail.
2016-03-31 17:27:58 -05:00
Mario Limonciello
661cd75b41 Allow overriding the location of the provider offline files for test suite 2016-03-31 13:41:14 -05:00
Mario Limonciello
5c1999b4ec Allow overridding the location of the pending database for test suite 2016-03-31 13:37:33 -05:00
Richard Hughes
2a1a9b61cc trivial: Use g_autoptr() in FuProviderUefi 2016-03-31 11:35:05 +01:00
Richard Hughes
7105e42af8 trivial: Do not show the argument list for an internal error 2016-03-31 11:23:04 +01:00
Richard Hughes
88492a3cd0 trivial: Add some more self tests for enums 2016-03-31 11:16:56 +01:00
Richard Hughes
12de5d8f23 Return errors of the correct type when using libfwupd
This also allows us to skip errors when doing 'make check' in a VM with no
hardware devices.
2016-03-31 11:04:49 +01:00
Richard Hughes
77df553db7 trivial: Be more explicit about testing for import success 2016-03-31 09:08:28 +01:00
Richard Hughes
fe490ebb80 Use g_auto() in FuKeyring
This simplifies function cleanup.
2016-03-31 09:00:16 +01:00
Mario Limonciello
c5e8921dfd Test that GPG key import actually was successful (or didn't change a key already in the keyring) 2016-03-30 23:59:48 -05:00
Richard Hughes
9559bbe42d Connect to UPower at startup 2016-03-29 19:18:52 +01:00
Richard Hughes
53ec7ea39e Do not return updates that require AC when on battery
This prevents us showing updates in GNOME Software that can't actually be
installed without an error.
2016-03-29 19:18:52 +01:00
Richard Hughes
5bf2837485 Add fwupd_result_has_device_flag() 2016-03-29 19:18:52 +01:00
Richard Hughes
b8956d41ee Do not use /tmp for downloaded files
The files are signed but downloading into user-cachedir is probably safer.
2016-03-29 19:18:18 +01:00
Richard Hughes
e4141f4f23 trivial: Print the fingerprint of the sig used for verification 2016-03-29 11:26:51 +01:00
Mario Limonciello
bb49bd52b9 Add Alienware to the version quirk table 2016-03-21 08:56:52 -05:00
Richard Hughes
b8f6b737e6 Show the checksum kind in the fwupdmgr output 2016-03-18 12:33:47 +00:00
Richard Hughes
af2f3f9288 Allow SHA-256 hashes when verifying
Although, stick to the old default of SHA-1 for now.
2016-03-18 12:33:47 +00:00
Richard Hughes
1f2f6ce1cd Allow other checksum kinds in FwupdResult
SHA1 is still the default, but others are allowed as well.
2016-03-18 12:33:47 +00:00
Richard Hughes
48a5117fde trivial: Allow different checksum types in FuRom 2016-03-18 12:33:47 +00:00
Richard Hughes
f3c1b56e73 trivial: Fix a potential crash spotted with clang 2016-03-18 12:33:47 +00:00
Richard Hughes
bdea096742 trivial: Add asserts for valid cancellables and errors in FwupdClient 2016-03-18 12:33:47 +00:00
Richard Hughes
9d8126ec63 libfwup: Fix up some NULL/FALSE confusion 2016-03-18 12:33:47 +00:00
Richard Hughes
bd046c8a19 libdfu: Fix up some NULL/FALSE confusion 2016-03-18 12:33:47 +00:00
Richard Hughes
b3849683b6 trivial: Remove all 'suspicious commas' 2016-03-18 12:33:47 +00:00
Richard Hughes
2d6e186800 Rename some of the new libfwupd API to align with the D-Bus names 2016-03-18 09:20:40 +00:00
Richard Hughes
ac97288ddb Emit a FwupdClient::changed when the daemon emits this signal 2016-03-17 13:10:16 +00:00
Richard Hughes
c8a60c9073 trivial: Squash a warning when compiling the self tests 2016-03-17 13:09:51 +00:00
Richard Hughes
8e9762d174 Use libfwupd inside the daemon
This also entailed writing some compat defines to work on FuDevices without
casting each one to a FwupdResult.
2016-03-17 10:14:17 +00:00
Richard Hughes
cb07a3eb3f Use FwupdClient from libfwupd in fwupdmgr 2016-03-17 10:09:03 +00:00
Richard Hughes
0f41340740 Add FwupdClient to libfwupd
This is a client-side object which can get results from the daemon.
2016-03-17 10:04:19 +00:00
Richard Hughes
7542c53749 Add a self test framework for libfwupd 2016-03-17 09:59:20 +00:00
Richard Hughes
1aec596e5f Add FwupdResult to libfwupd
This is a client-side object representing a result from the daemon.
2016-03-17 09:57:48 +00:00
Richard Hughes
b94f2f0488 Export FwupdUpdateFlags in libfwupd 2016-03-17 09:52:00 +00:00
Richard Hughes
a475eecda2 Export FwupdUpdateState in libfwupd 2016-03-17 09:48:34 +00:00
Richard Hughes
c1e3ded9a3 Add fwupd_trust_flag_to_string() 2016-03-17 09:43:04 +00:00
Richard Hughes
da887df142 trivial: Add note for next API break 2016-03-17 09:42:52 +00:00
Richard Hughes
2d041f370f trivial: post branch version bump 2016-03-16 18:14:11 +00:00
Richard Hughes
6d39d37039 Show device flags in 'fwupdmgr get-devices' 2016-03-15 21:40:36 +00:00
Richard Hughes
16d8f6212d Return the device flags when getting firmware details
This allows us to see if a local firmware file can be installed on the local
machine, and crucially, whether it has to be installed on or off-line.
2016-03-15 21:40:36 +00:00
Richard Hughes
23583f9d0b Add fwupd_device_flag_to_string() 2016-03-15 16:31:47 +00:00
Richard Hughes
5883ccae57 Add a plugin for SteelSeries hardware 2016-03-14 14:56:11 +00:00
Richard Hughes
dad1e193cd Run vendor plugins as required
This allows us to run plugins from AppStream metadata values.
2016-03-14 14:54:21 +00:00
Richard Hughes
80a77bcfd8 Use g_usb_context_wait_for_replug() 2016-03-14 14:47:44 +00:00
Richard Hughes
b4572d4c8c trivial: post release version bump 2016-03-14 09:32:05 +00:00
Richard Hughes
f1d06338ec Release fwupd 0.6.3 2016-03-14 09:30:08 +00:00
Richard Hughes
d090514f15 Add a simple plugin infrastructure
This allows vendors to write small self-contained modules that can be used to
override the default behaviour in the various providers.
2016-03-13 09:52:55 +00:00
Richard Hughes
ffa323b231 Revert "Allow defining update vfuncs with no runtime support"
This reverts commit 780a3e59ff.
2016-03-11 08:48:58 +00:00
Richard Hughes
780a3e59ff Allow defining update vfuncs with no runtime support
This allows providers to decide at runtime if a device can be updated online.
2016-03-11 08:21:22 +00:00
Richard Hughes
935769bf4d trivial: Fix comment header 2016-03-11 08:21:10 +00:00