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
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
d29df0819f
Allow specifying the reporting server in the remote key files
2018-01-11 20:20:00 +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
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
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
8f89cf04fb
Add more metadata to the user-agent string
2017-12-21 08:25:29 +00:00
Richard Hughes
86914c52da
trivial: Fix whitespace issue
2017-11-28 14:14:36 +00:00
Richard Hughes
78c8411253
Use the correct remote-specified username and passord when using fwupdmgr
...
Spotted by clang, many thanks.
2017-11-09 12:17:24 +00:00
Richard Hughes
3b84753769
Use help2man to generate the man page at build time
...
The man pages are always old and out-of-sync with the actual tool, so just
generate them using the output of --help.
Fixes https://github.com/hughsie/fwupd/issues/285
2017-10-23 16:47:08 +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
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
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
f11fa3caac
trivial: Use the new fwupd_client_get_upgrades() in fwupdmgr
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
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
ba15eebabb
trivial: Show the RemoteID when printing available releases
2017-09-14 10:26:15 +01:00
Richard Hughes
a1aab517d1
Move the update state to FwupdDevice
...
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 former, and that's how plugins are using it.
2017-09-13 14:59:32 +01:00
Richard Hughes
48ad97fd61
Add a human-readable title for each remote
...
This allows us to show something useful in a GUI.
2017-09-10 09:08:32 +01:00
Richard Hughes
a6bd5580d3
Add ModifyRemote as an easy way to enable and disable remotes like the LVFS
...
For example:
$ fwupdmgr modify-remote lvfs-testing Enabled true
2017-09-07 23:02:58 +01:00
Richard Hughes
49e5e05aa8
Parse the SMBIOS DMI table directly
...
The Linux DMI class still does not provide the information we need, and parsing
the blob directly also allows the Dell and Redfish plugins to get the raw data.
2017-09-05 18:10:36 +01:00
Richard Hughes
f315719851
trivial: Fix up a literal format string in fwupdmgr
2017-08-31 20:00:01 +01:00
Richard Hughes
1f92addd10
trivial: Remove unused function in fwupdmgr
...
Fixes 2nd half of https://github.com/hughsie/fwupd/issues/209
2017-08-30 10:51:51 +01:00
Richard Hughes
c6afb51e32
Add a FirmwareBaseURI parameter to the remote configs
...
This allows somebody to mirror the CDN without resigning the metadata files.
Fixes: https://github.com/hughsie/fwupd/issues/186
2017-08-23 14:22:12 +01:00
Richard Hughes
0dea1efb92
Use MetadataURI for both kinds of remote
...
I think this is clearer having one key for both types of remote.
2017-08-23 14:22:08 +01:00
Richard Hughes
9a7db9df7d
Show a bouncing progress bar if the percentage remains at zero
...
Device actions like a Thunderbolt replug can take 25 seconds (!) and so it's a
good idea to show the user that the calling process is still alive.
2017-08-21 15:51:38 +01:00
Richard Hughes
99e621d388
Save the metadata signature in the local cache
...
This is useful if the admin wants to re-verify the metadata, or if a public
key is removed or expires.
2017-08-16 13:42:10 +01:00
Richard Hughes
7ee42feb83
trivial: Add common function for making required parent directories
2017-08-15 15:35:36 +01:00
Richard Hughes
7403dc505f
Optionally use GnuTLS to verify PKCS7 certificates
...
We can use this as an alternative for GPG. No PKCS7 certificates are currently
installed by fwupd and it's expected that the LVFS will still only provide GPG
detached signatures.
If an OEM distributor wants to sign firmware with a PKCS7 and the corresponding
certificate is provided then the firmware will be marked as valid.
Only firmware shipping with a .p7b file will use the PKCS7 functionality,
similarly remote metadata validation will default to GPG unless Keyring=pkcs7
is specified in the config file.
2017-08-14 09:42:48 +01:00
Richard Hughes
0724d8bde0
trivial: Bump the appstream-glib requirement to 0.6.13
2017-08-09 17:21:48 +01:00
Richard Hughes
41cbe2aab3
Add a firmware builder
...
This runs a script inside the firmware archive to generate firmware specific to
the machine. This uses bubblewrap to protect the local machine.
2017-08-09 10:33:39 +01:00
Richard Hughes
2d95a71a0c
Support embedded devices with local firmware metadata
...
In this mode, both the metadata and firmware is stored on the local filesystem
and distributed using a distribution system like OSTree.
Fixes https://github.com/hughsie/fwupd/issues/162
2017-07-28 17:41:24 +01:00
Richard Hughes
ba51279752
trivial: Fix two tiny leaks in fwupdmgr
2017-07-27 16:32:43 +01:00
Mario Limonciello
9ac53e28b1
Add information about compile-time dependency versions
...
Since the codebase looks at these versions for turning on and off
functionality it will be useful to use this for debugging
2017-07-24 15:30:28 -05:00
Mario Limonciello
dc8c985159
trivial: back the requirement on appstream-glib to 0.6.9
...
The items that 0.6.13 requires are now guarded by a version test.
This should allow running fwupd master on more distros that haven't
yet picked up appstream-glib 0.6.13.
2017-07-10 14:32:42 -05:00
Richard Hughes
b3dca14e90
trivial: Never compare a string against zero to avoid warnings
2017-07-06 18:28:01 +01:00
Mario Limonciello
b04c13e1cf
Include optional git checkout information in --version
...
When users are running from git this should aide in
debugging if they have a fix included.
2017-07-05 17:49:50 -05:00