Richard Hughes
f2eccdee5c
trivial: Fix a tiny memory leak when getting the upgrades list
2017-09-20 11:18:03 +01:00
Mario Limonciello
3b55a06fec
trivial: switch CI to debian testing
...
testing should shield CI from migrations happening in unstable
can switch back to unstable as needed in future
2017-09-20 13:53:13 +08:00
Mario Limonciello
1e4f512118
debian: remove /etc/fwupd.conf on upgrade
2017-09-19 14:25:25 -05: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
1df45c1401
unifying: Use fu_plugin_check_supported()
...
Some (HIDPPv1?) devices don't like being probed, and in some cases actually
stop working altogether.
Fixes bugs like #127 and #258
2017-09-19 16:11:27 +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
86a500462a
Revert "unifying: Use a device whitelist to avoid breaking devices"
...
This reverts commit f194d68570
.
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
297ea34f1b
Drop CAP_SYS_ADMIN
...
Fixes: https://github.com/hughsie/fwupd/issues/98
2017-09-19 12:01:45 +01:00
Richard Hughes
e8c3ce249c
trivial: Bump the plugin location after the FwupdResult change
2017-09-19 09:55:28 +01:00
Richard Hughes
a0de807a61
trivial: Remove the long deprecated DownloadURI config key
2017-09-19 09:54:45 +01:00
Richard Hughes
8880cd09e4
trivial: Fix up some introspection issues
2017-09-19 09:54:16 +01:00
Mario Limonciello
9ff5670b3d
drop fu-dell-tool
...
It's been superceded by the thunderbolt power plugin
2017-09-18 17:13:12 -05:00
Richard Hughes
f194d68570
unifying: Use a device whitelist to avoid breaking devices
...
Some (HIDPPv1?) devices don't like being probed, and in some cases actually
stop working altogether. As we only really support the K780, just whitelist
that and another test device.
Fixes bugs like #127 and #258
2017-09-18 17:36:48 +01:00
Richard Hughes
c80d5c10e0
trivial: post branch version bump
2017-09-18 11:47:55 +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
daa341720f
trivial: Show the interface size for an invalid DFU device
2017-09-18 11:06:29 +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
9decf17d82
dell: Fix a trivial whitespace issue
2017-09-16 18:52:44 +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
fe09a0010f
trivial: Allow adding more than one FwupdRelease to a FwupdDevice
2017-09-15 20:09:03 +01:00
Fred Deschenes
e74892fca1
Add issue template
2017-09-15 08:40:53 -07: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
Richard Hughes
f6e4d723ca
Do not store the AppStream ID in the pending database
...
We don't actually need it for anything and it complicates future functionality.
2017-09-14 11:45:06 +01:00
Richard Hughes
27e5df2fe7
trivial: Fix a tiny leak in the daemon
2017-09-14 11:28:50 +01:00
Richard Hughes
ba15eebabb
trivial: Show the RemoteID when printing available releases
2017-09-14 10:26:15 +01:00
Richard Hughes
d140210b4f
trivial: Fix up the hex version numbers when adding to the store
...
This means we show the 'human readable' version numbers in the debug UI.
2017-09-14 10:26:15 +01:00
Richard Hughes
bd4d2856dd
Merge releases where multiple remotes provide the same firmware
...
For a few months the lvfs-testing remote has not included firmware already
present in the stable lvfs remote. This means if you enable the testing remote
then components in the stable remote are not available to fwupd.
Instead of a simplistic check on the component ID, add the missing releases
no matter the ordering of the remotes.
2017-09-14 10:26:15 +01:00
Richard Hughes
fc0d170334
trivial: Show the available release versions in the daemon debug output
...
Also, truncate the output when there are lots of versions available.
2017-09-14 10:26:15 +01:00