Richard Hughes
cd0d72abbe
trivial: Move the man pages to the source locations
...
This should make it easier to keep them in sync.
2017-10-09 09:59:52 +01:00
Richard Hughes
50ba92dcae
trivial: Generate an internal daemon introspection file
...
This isn't installed and is only used to validate the gtk-doc markup.
2017-10-05 10:32:05 +01:00
Richard Hughes
4eada34d4c
trivial: Fix up introspection issues in the daemon code
2017-10-05 10:32:05 +01:00
Richard Hughes
87f8a4a284
Add a waiting-for-auth daemon state
...
Using IDLE for this isn't right as we're basically blocked on the user.
2017-10-02 14:50:26 +01:00
Richard Hughes
723b4ccaa6
trivial: Don't show a progressbar when then daemon is staying idle
2017-09-29 11:58:21 +01:00
Richard Hughes
7f6d78fb1b
Add fwupd_remote_get_checksum() to use in client programs
2017-09-28 09:23:52 +01:00
Richard Hughes
b2fb80925c
trivial: Remove fwupd_remote_get_filename()
...
The data for these was just being generated internally based on the ID and the
basename of the original URI, and that's easy for the calling application to do
itself.
2017-09-28 09:23:52 +01:00
Richard Hughes
642ec13754
trivial: Remove GetUpdates as it is no longer used
2017-09-28 09:23:52 +01:00
Richard Hughes
eb53042c20
trivial: Use FuProgressbar in dfu-tool
2017-09-28 09:23:52 +01:00
Richard Hughes
b73ff8a346
trivial: Use FwupdStatus in the dfu plugin
2017-09-28 09:23:52 +01:00
Richard Hughes
e0bd53e439
trivial: Use standard _to_variant() and _from_variant() forms
2017-09-28 09:23:52 +01:00
Richard Hughes
603e42d527
trivial: Include the releases as part of the device a{sv} array
2017-09-28 09:23:52 +01:00
Richard Hughes
9e1b14067c
trivial: Always use a a{sv} type to return value
...
Mixing sa{sv} and a{sv} made everything very confusing...
2017-09-28 09:23:52 +01:00
Richard Hughes
10c6a89563
trivial: Do not use 'provider' in the public API
2017-09-28 09:23:52 +01:00
Richard Hughes
80893e29fe
trivial: Remove FwupdResult from libfwupd
2017-09-28 09:23:52 +01:00
Richard Hughes
b86ef97b36
trivial: Remove fwupd_remote_build_uri()
...
This also removes the long-deprecated fwupd_remote_get_uri() and fwupd_remote_get_uri_asc()
2017-09-28 09:23:52 +01:00
Richard Hughes
ba73c76d69
trivial: Remove the deprecated fwupd_client_update_metadata()
...
Also, rename fwupd_client_update_metadata_with_id() to it's now-removed counterpart.
2017-09-28 09:23:52 +01:00
Richard Hughes
07f963a52d
trivial: Remove the deprecated fwupd_client_get_details()
...
Also, rename fwupd_client_get_details_local() to it's now-removed counterpart.
2017-09-28 09:23:52 +01:00
Richard Hughes
eb94c14022
trivial: Remove the deprecated fwupd_client_get_devices()
...
Also, rename fwupd_client_get_devices_simple() to it's now-removed counterpart.
2017-09-28 09:23:52 +01:00
Richard Hughes
08a37992f9
Allow plugins to depend on each other
...
The only things that plugins can declare is that they should be run before,
after or never with regard to another plugin.
2017-09-21 17:09:06 +01:00
Richard Hughes
7ada7a8678
Add support for SMBIOSv3
...
Fixes https://github.com/hughsie/fwupd/issues/262
2017-09-20 22:08:21 +01:00
Richard Hughes
f2eccdee5c
trivial: Fix a tiny memory leak when getting the upgrades list
2017-09-20 11:18:03 +01:00
Richard Hughes
34e25a0cc5
trivial: Remove EnableTestSuite from daemon.conf
...
The same thing can be done using BlacklistPlugins=test
2017-09-19 20:06:44 +01:00
Richard Hughes
10bd8ecfb8
trivial: Remove EnableOptionROM from daemon.conf
...
The exact same thing can be done using BlacklistPlugins=udev
2017-09-19 20:06:44 +01:00
Richard Hughes
c2af1964b9
trivial: Move /etc/fwupd.conf to /etc/fwupd/daemon.conf
2017-09-19 20:06:44 +01:00
Richard Hughes
b0aa379300
Use a fallback SYSCONFDIR if the default is not set
2017-09-19 20:06:44 +01:00
Richard Hughes
1354ea9cd8
Add fu_plugin_check_supported()
...
This allows a plugin to see if a GUID is supported in the AppStream metadata of
configured remotes. It allows plugins to skip devices that are not supported
and that do bad things when probed.
2017-09-19 16:00:45 +01:00
Richard Hughes
41fc2d5435
trivial: Hide fu_plugin_has_device_delay() from plugins
2017-09-19 15:19:17 +01:00
Richard Hughes
7769fb8da7
trivial: Add some more FuEngine self tests
2017-09-18 11:12:52 +01:00
Richard Hughes
0dec274e56
Fix a crash when using fu_plugin_device_add_delay()
...
By removing the device from the hash table before we add it to the devices
array we could inadvertently drop the last object reference if the plugin is
not using the (optional) cache.
Just re-arrange things to fix https://github.com/hughsie/fwupd/issues/259
2017-09-18 11:08:27 +01:00
Richard Hughes
4c95f8973a
trivial: Fix build deps to fix ppc64le build
2017-09-17 11:00:19 +01:00
Richard Hughes
c07ac39ad1
trivial: Return a better error for keyring set up failure
2017-09-17 09:33:53 +01:00
Richard Hughes
b5b4beb472
Fix various printing issues with the progressbar
...
Specifically, fix the progressbar to:
* Print at 100% after an 'unknown' percentage task has completed
* Refresh the progressbar if being called without a main loop running
* Allow the progressbar to start with a h-offset without moving 'left'
* Don't cause high CPU load when calling fu_progressbar_update() ever few us
Also, add some unit tests to discover all the issues.
2017-09-17 08:56:05 +01:00
Richard Hughes
4f98fe89ba
trivial: Use a different SYSCONFDIR for self tests
2017-09-17 08:38:43 +01:00
Richard Hughes
84bf038a52
trivial: Do not log to the journal when calling GetDetails
2017-09-16 18:52:51 +01:00
Richard Hughes
882ab6b4d0
trivial: Add a self tests for the broken metadata bug
2017-09-16 17:53:16 +01:00
Richard Hughes
820dac7fde
trivial: Use a different SYSFSFIRMWAREDIR for self tests
...
This means we can drop some self-test specific code in fu_smbios_setup().
2017-09-16 17:46:41 +01:00
Richard Hughes
e7c6bcab3a
trivial: Use a different PLUGINDIR for self tests
2017-09-16 17:44:38 +01:00
Richard Hughes
49938e6a07
trivial: Skip non-conf files when searching for remotes
2017-09-16 13:24:50 +01:00
Richard Hughes
068d34307a
Do not fail to load the daemon if cached metadata is invalid
...
Fixes: https://github.com/hughsie/fwupd/issues/257
2017-09-16 08:26:46 +01:00
Richard Hughes
93b1576bef
trivial: Add helpers that can be used for returning local files
...
This also allows us to drop the use of FwupdResult in the daemon.
2017-09-15 14:12:18 +01:00
Richard Hughes
cc3de2efa4
Do not store the newest release as part of the FuDevice object
2017-09-15 14:12:18 +01:00
Richard Hughes
e7fd8eb81f
trivial: Simplify the check for supported devices
2017-09-15 14:12:18 +01:00
Richard Hughes
f11fa3caac
trivial: Use the new fwupd_client_get_upgrades() in fwupdmgr
2017-09-15 14:12:18 +01:00
Richard Hughes
a96413a368
Add a method to return a list of upgrades for a specific device
2017-09-15 14:12:18 +01:00
Richard Hughes
97284b1ad8
Move the downgrade calculation to the daemon
2017-09-15 14:12:18 +01:00
Richard Hughes
68982c6624
Make FuDevice derive from FwupdDevice rather than FwupdResult
...
We're aiming for a model where devices can have multiple releases and we can
nuke FwupdResult completely.
2017-09-15 14:12:18 +01:00
Richard Hughes
b3ca245b74
Move the release trust information to FwupdRelease
...
It only remained on FwupdResult because I couldn't make up my mind about whether
it was a property of the device, or the firmware release. It's more logically
the latter, as you could have a .cab file with multiple versions of the
firmware and only the first being signed.
2017-09-15 11:31:01 +01:00
Richard Hughes
6ab53111db
Never fallback to an offline update from client code
...
UEFI updates don't need to be retried since a785a1c . If the call to Install()
failed with NOT_SUPPORTED we can just show the error rather than doing the
little dance and involving the offline pending database for no reason.
Fixes some of https://github.com/hughsie/fwupd/issues/255
2017-09-15 09:35:27 +01:00
Richard Hughes
31bbd1691b
Add a command 'clear-offline' to fwupdmgr
...
This allows us to 'unschedule' any offline updates.
2017-09-15 09:33:06 +01:00