Richard Hughes
c269e64584
trivial: Make a string extractable with xgettext
2018-01-25 12:36:01 +00:00
Richard Hughes
f06ba475b1
Ask the user to refresh metadata when it is very old
...
Also allow skipping the questions for non-interactive scripts.
2018-01-17 20:22:18 +00:00
Richard Hughes
2de8f13b2c
Allow each plugin to opt-in to the recoldplug action
...
Recoldplug is really not required for the USB based plugins, and we should
restrict this action to plugins that have inter-dependencies on each other.
2018-01-17 20:19:58 +00:00
Richard Hughes
e1fe34f1ec
Never add two devices to the daemon with the same ID
...
Deduplicate based on the ID, without assuming the devices will be the same
in-memory object. Also, only emit the changed signal if the device is waiting
for a replug.
Fixes https://github.com/hughsie/fwupd/issues/364
2018-01-16 13:49:02 +00:00
Richard Hughes
8da530475d
trivial: Fix deduplication when looking for the old device ID
...
When searching for a device by id, also include the old device in the search.
2018-01-16 13:48:58 +00:00
Richard Hughes
4012754569
trivial: Rename some FuDeviceList methods
...
The convention we're using is that find() returns the FuDeviceItem and get()
returns the FuDevice, so be consistent.
No code flow changes.
2018-01-16 13:48:51 +00:00
Mario Limonciello
a50f985edc
uefi: Add a device name for locked devices ( #364 )
...
These are devices that UEFI capsule support is turned off in BIOS
setup. Unlocking them can turn UEFI capsule support
2018-01-15 19:32:18 +00:00
Richard Hughes
7e070c9bd7
Record an error if any NEEDS_REBOOT transaction fails to be applied
...
In the case of failing to even set up UpdateCapsule, the uefi plugin would
dutifully return SUCCESS as it was referring to the 2nd-to-last update that
actually worked.
2018-01-12 16:50:24 +00:00
Richard Hughes
7984310a65
trivial: Ensure a historical error message is cleared on success
2018-01-12 16:50:24 +00:00
Richard Hughes
d949d961e8
trivial: Pass the device-id to the fu_history_set_X() methods
...
This allows us to use a FwupdDevice or just use a string for testing.
2018-01-12 16:50:24 +00:00
Richard Hughes
0b9d996d4d
trivial: Rename some methods in FuHistory to reflect the device-centric nature
2018-01-12 16:50:24 +00:00
Richard Hughes
780ef3f2ba
trivial: Use 'history' for the FuHistory object name
2018-01-12 16:20:31 +00:00
Richard Hughes
f271142c47
trivial: Do not recover the pending update if the boot time is unchanged
...
This ensures we can restart the fwupd service without marking updates that need
a reboot as failed.
2018-01-12 16:17:27 +00:00
Richard Hughes
59c2ebe5cd
Add in the kernel boot time to the uploaded report
2018-01-12 16:17:22 +00:00
Mario Limonciello
b0398b00cf
Revert "ubuntu: depend on appstream-glib 0.7.4 too"
...
This reverts commit 47ff62b986
.
This lets master build on Ubuntu 17.10.
Ubuntu 17.10 doesn't have the newer appstream-glib, so reverting
this commit means Ubuntu 17.10 can't use the HWID's stuff from
b8f8db2082
without a manual backport.
Ubuntu 18.04 and later already have the newer appstream-glib
though, so they will get the HWIDs functionality
2018-01-12 09:55:24 -06:00
Richard Hughes
a899713863
Rescan supported flags when refreshing metadata
...
The SUPPORTED flag is used when a device appears in the AppStream metadata of
any enabled remote, so when we rescan the modified store also ensure the flag
state is still correct.
Fixes https://github.com/hughsie/fwupd/issues/363
2018-01-12 15:04:21 +00:00
Richard Hughes
2db7528b13
trivial: Mark the remotes as config files in the rpm spec example
...
If a user disables the reporting URI, we don't want to re-enable it
accidentally when upgrading fwupd.
2018-01-12 14:23:08 +00:00
Mario Limonciello
a66ad15855
Fix UX capsule reference to the one in efivar
...
The work for this landed in what will turn into efivar 33.
Later down the road when efivar 33 is in most the major distros
this can be removed and a requirement set for efivar 33.
2018-01-12 09:08:18 +00:00
Richard Hughes
0d2320735d
Nag the user to upload reports when doing common operations
...
This is supposed to be a gentle nag, rather than being obnoxious. To disable
this, simply remove the ReportURI key from the relevant remote.
2018-01-11 21:31:29 +00:00
Richard Hughes
0a7bc97317
Add a 'report-history' command to fwupdmgr
...
This shares your history with a reporting server, typically the LVFS.
NOTE: no data is sent without the user opting-in, and the data sent is shown to
the user before upload.
2018-01-11 21:31:29 +00:00
Richard Hughes
b58104895d
trivial: Add fwupd_build_history_report_json() for future use
2018-01-11 21:28:22 +00:00
Richard Hughes
80b79bb9aa
trivial: Allow plugins to add metadata to the uploaded reports
2018-01-11 21:28:22 +00:00
Richard Hughes
473c520e38
Add in extra metadata to the uploaded reports
...
Save the dependency versions, architecture and the kernel versions in the
history database as metadata as it may be different to the time of upload.
2018-01-11 21:28:22 +00:00
Richard Hughes
38c59fcf4a
Allow saving extra metadata in the history database
...
This will be used to store things like the kernel version in the future, and
also means we can stop abusing the vendor property for the fwupd version.
2018-01-11 21:27:44 +00:00
Richard Hughes
d0adb23968
Allow adding metadata to the FwupdRelease
2018-01-11 20:52:58 +00:00
Richard Hughes
e09dbd4ce1
trivial: Do not save flags with daemon state in the history database
2018-01-11 20:20:03 +00:00
Richard Hughes
d29df0819f
Allow specifying the reporting server in the remote key files
2018-01-11 20:20:00 +00:00
Richard Hughes
611f1a9cbf
Set the remote-id on devices returned by GetHistory
2018-01-11 20:19:41 +00:00
Richard Hughes
3eb2a00d10
trivial: Fix up the version check for offline firmware reporting
2018-01-11 20:19:16 +00:00
Richard Hughes
ae142a411f
trivial: Parse the os-release file in a more useful way
...
This allows us to use the other keys for future use.
2018-01-11 10:30:39 +00:00
Richard Hughes
6b22295cf0
Add a D-Bus method to modify a historical device
...
This allows us to set specific flags on the device stored in the database.
2018-01-11 10:20:48 +00:00
Richard Hughes
d0d2c8b84e
trivial: Add FWUPD_DEVICE_FLAG_REPORTED
...
This flag is present in the history database when a report has been uploaded.
2018-01-11 10:18:37 +00:00
Richard Hughes
a2f8e45c0f
trivial: Set the update state for any updates that need a reboot
...
This has to be done at each engine startup, as this will happen on the *next*
OS boot.
2018-01-11 10:11:17 +00:00
Richard Hughes
476363ac19
Add a D-Bus method to get the history information
2018-01-11 10:08:58 +00:00
Richard Hughes
af54a0778a
trivial: Add a 'clear-history' command to fwupdmgr
...
This needs to be run as the root user to work.
2018-01-11 10:04:50 +00:00
Richard Hughes
bc3a4e1f57
Store firmware update success and failure to a local database
...
Rename FuPending to FuHistory to better represent what the object is now doing.
Also, while we're here, switch to using SQLite prepared statements to avoid a
possible invalid read on i386 hardware.
2018-01-11 09:59:34 +00:00
Richard Hughes
b73e70b205
trivial: Use the shared fu_test_compare_lines() in the dfu plugin
2018-01-11 09:59:34 +00:00
Richard Hughes
9c808e838e
trivial: Add fu_test_compare_lines()
...
This is for future use.
2018-01-11 08:17:02 +00:00
Richard Hughes
f1ed711c7e
trivial: Add fwupd_build_machine_id()
...
This allows us to identify a specific machine using the machine-id.
2018-01-11 08:16:55 +00:00
Richard Hughes
3e90a58096
trivial: Do not hardcode the update state in fu_pending_add_device()
2018-01-11 08:16:33 +00:00
Richard Hughes
696e6fdcf3
trivial: Don't allow deleting the pending database
...
If we're going to use this for history we have to be a little more subtle.
2018-01-11 08:16:25 +00:00
Richard Hughes
718be2de6b
trivial: Prefer https_proxy for metadata downloads
2018-01-11 08:16:18 +00:00
Richard Hughes
74fa2ca635
Fix firmware downloading using gnome-software compiled against fwupd 1.0.x
...
Always set the AppStream app properties on the FwupdRelease. In some cases we
were returning FwupdRelease objects with no name or summary which gnome-software
was ignoring.
2018-01-10 21:37:43 +00:00
Richard Hughes
1c4c3b5249
trivial: post release version bump
2018-01-09 16:01:21 +00:00
Richard Hughes
849ed6403c
Release fwupd 1.0.3
2018-01-09 15:49:50 +00:00
Richard Hughes
eafba48905
trivial: Namespace the ignored cleanup error better
2018-01-08 21:59:08 +00:00
Richard Hughes
d980ccb757
trivial: Do the fwupdmgr network setup in a new function
...
This is for future use by other commands.
2018-01-08 16:57:01 +00:00
Richard Hughes
054b68457d
trivial: Use the shared FwupdClient when monitoring
2018-01-08 16:56:56 +00:00
Richard Hughes
9939f1c85c
trivial: Fix tiny memory leak when getting GUIDs from an invalid archive
2018-01-08 16:56:19 +00:00
Richard Hughes
e5711c762b
trivial: Fix NULL handling in FuPending
...
We never want to store '(NULL)' as a string in the database.
2018-01-08 16:45:56 +00:00