Richard Hughes
943d2c9bb5
trivial: Split out some common functionality from fu-engine.c
2017-06-21 09:04:39 +01:00
Mario Limonciello
c5300df799
Drop additions to /etc/apt/sources.list for Debian
...
The docker base images include these already
2017-06-20 14:45:23 -05:00
Mario Limonciello
9a33ea6e06
Adjust debian dependencies
...
They were a little bit overzealous.
2017-06-20 14:17:49 -05:00
Mario Limonciello
1499892173
Test for python dependencies before building ( #147 )
2017-06-20 14:17:49 -05:00
Mario Limonciello
f3f4390155
Only use the test runner plugin when CI is set in the env ( #148 )
...
This prevents an installed system from showing FakeDevices but
still allows exercising every commit with Travis CI
2017-06-20 13:56:13 -05:00
Mario Limonciello
b4208bb577
Adjust Debian version detection to just parse meson.build
2017-06-20 13:54:52 -05:00
Richard Hughes
9bb940d40d
trivial: Try to enable the valgrind support with newer meson versions
2017-06-20 09:25:25 +01:00
Mario Limonciello
2c9a09f767
Add texlive-fonts-recommended to Debian container
...
Since the container is installed with --no-install-recommends
it isn't coming in by default. Without it this bug occurs:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865217
2017-06-19 16:04:12 -05:00
Richard Hughes
a5bb4d8428
trivial: Fix a missing signal causing a warning in the recent refactor
2017-06-19 20:22:25 +01:00
Richard Hughes
166d42cada
amt: Fix up a small memory leak and remove some goto's
2017-06-19 20:19:32 +01:00
Mario Limonciello
35aebc838f
trivial: fix typo in contrib/debian/rules:
...
Prevented Dell and Synaptics plugins from compiling
2017-06-19 10:22:59 -05:00
Richard Hughes
9b59676a24
Add a plugin to get the version of the AMT ME interface
2017-06-19 14:01:47 +01:00
Richard Hughes
0eaca2da65
trivial: Fix test failure with de5dd8f3
2017-06-19 14:01:27 +01:00
Richard Hughes
b53ad36012
trivial: Fix up a number of FALSE/NULL return issues
2017-06-19 13:50:42 +01:00
Richard Hughes
d60421a5fa
trivial: Ensure all source files include config.h
2017-06-19 13:50:42 +01:00
Richard Hughes
9945edbe74
Split up the daemon into the loader and an engine object
...
The idea here is that we move a lot of the 'meat' out of fu-main into the
engine. This also lets us simplify a lot of things and ensures the user
authentication is simple and easy to audit.
2017-06-19 13:50:38 +01:00
Richard Hughes
de5dd8f33d
trivial: Include the name in fwupd_device_to_string()
2017-06-19 13:26:47 +01:00
Richard Hughes
5475427ca9
Remove the UpdateMetadata D-Bus method as the fallback is done client-side
2017-06-19 09:58:11 +01:00
Richard Hughes
1f162e2f16
Implement the GetDetails->GetDetailsLocal fallback client side
...
This allows us to get rid of some more complex daemon code.
2017-06-19 09:56:43 +01:00
Richard Hughes
cda1cdf606
Also watch the metadata cache filename for changes
...
If something changes the cache behind our back (e.g. deleting or updating the
file) we need to reload the list of remotes so that the age is correctly shown.
2017-06-16 21:49:37 +01:00
Richard Hughes
feb8027ee3
Show the age of the remote metadata in 'fwupdmgr get-remotes'
...
Note: we have to transfer the mtime (not the age) when creating the GVariant,
as we want calls to fwupd_remote_get_age() to update the value without getting
the remote from the daemon each time.
2017-06-16 20:24:41 +01:00
Richard Hughes
71e73ca048
trivial: Fix the installed tests
...
We ony want to replace the fake LVFS metadata with the real data after we've
downgraded the dummy device.
2017-06-16 17:21:17 +01:00
Richard Hughes
83fb8d95f4
Do not fall back to the default release when verifying
...
This is never going to be valid. What we want is to try and get a new AsApp and
AsRelease from the system store, not the verification store.
2017-06-16 17:13:05 +01:00
Richard Hughes
4a2e915e9a
unifying: Use the UFY DeviceID prefix as the PID is not 'USB PIDs' at all.
...
Resolves: https://github.com/hughsie/fwupd/issues/144
2017-06-16 16:45:42 +01:00
Richard Hughes
0a87f6fb03
Store the metadata files rather than merging to one store
...
Now we have multiple remotes that can be enabled or changed at runtime we need
to do several things better:
* Only load components from remotes that are enabled
* Only load a component if a higher priority remote has not already added it
Rather than just appending all recieved metadata into one big XML file, save
the original metadata .xml.gz files in /var/lib/fwupd/remotes.d and only load
them in the correct priority order if the remote is known and enabled.
Remove the old /var/cache/app-info/xmls/fwupd.xml file, also noting it wasn't
really a cache file at all but actually something quite important.
2017-06-16 16:43:13 +01:00
Richard Hughes
5935ebda5a
Check the remote exists and is enabled when using UpdateMetadataWithId
2017-06-16 15:40:31 +01:00
Richard Hughes
4c36970445
Move the remotes parsing from the client to the server
...
This allows us to load the metadata stores in a more sensible way in the future.
2017-06-16 15:31:40 +01:00
Richard Hughes
f0bde3e4af
Add a get-remotes command to fwupdmgr
...
This allows the user to show the configured remotes.
2017-06-16 14:31:20 +01:00
Richard Hughes
980ef147eb
Move the config file parsing out to a new object
...
This will allow us to move the remote parsing here soon.
2017-06-16 12:46:40 +01:00
Richard Hughes
81f96797f6
trivial: Do not remove all apps in the store when loading metadata
2017-06-16 12:40:49 +01:00
Richard Hughes
8a8425f7be
Do not store the verify store in the cachedir
...
The list of verification hashes is certainly not a cache, it's important data
that needs to be kept for a long time somewhere important.
Move it from /var/cache/app-info/xmls to /var/lib/fwupd and delete the old file
as it may have now-incorrect contents.
2017-06-16 12:40:44 +01:00
Richard Hughes
a71e0a71f6
Allow ordering the metadata remotes
...
This allows us to load one metadata source file before or after another.
2017-06-16 12:40:24 +01:00
Richard Hughes
bbde1df44f
Fix downgrades when version_lowest is set
...
Also, add some tests to test this with the dummy device.
2017-06-16 12:40:15 +01:00
Richard Hughes
8a870d0399
trivial: Ensure there are no updates after the update is applied
2017-06-16 12:40:10 +01:00
Richard Hughes
954de52612
trivial: Make --verbose work in fwupdmgr
2017-06-16 07:59:02 +01:00
Richard Hughes
19fdebf4f4
trivial: Install two extra packages for the fedora Travis build
2017-06-16 07:59:02 +01:00
Richard Hughes
40aeea4167
trivial: Show the release (not device) checksums in 'fwupdmgr get-updates'
2017-06-16 07:59:02 +01:00
Mario Limonciello
4ba3d25ba1
Drop the locale hack on the Debian docker file
2017-06-15 17:09:42 -05:00
Mario Limonciello
b692286690
deb packaging: cleaner locale fix
2017-06-15 17:09:42 -05:00
Richard Hughes
ababbb7ae1
trivial: Clear any device checksums before doing device::verify
2017-06-15 20:19:23 +01:00
Richard Hughes
f556d371da
trivial: Clear any device checksums after the online update
2017-06-15 20:19:19 +01:00
Richard Hughes
b7bf715435
Add an installed test for device update
...
This also moves the tests into one file as gnome-desktop-testing-runner
intentionally randomizes the order and runs them in parallel where allowed.
Since tests like get-updates have to be run after the metadata injection simply
put these into one test that calls a simple script.
2017-06-15 20:19:03 +01:00
Richard Hughes
c2a20d7fff
trivial: Show the release (not device) checksums in 'fwupdmgr get-releases'
2017-06-15 20:19:03 +01:00
Piotr Drąg
3e1146890c
Add the AppStream metainfo file to POTFILES.in
2017-06-15 18:53:40 +01:00
Richard Hughes
ae7e0d21b2
Add an installed test for verification
2017-06-15 16:23:52 +01:00
Richard Hughes
038ab7dcb2
Add an AppStream metainfo file
...
This seems like the right thing to do, and also means we *could* move the NEWS
data in the future.
2017-06-15 12:53:33 +01:00
Richard Hughes
b75549287c
trivial: Drop deps when compiling with enable-uefi-labels=false
2017-06-15 12:05:11 +01:00
Richard Hughes
8d1054eaf1
trivial: Enable the tests in the reference spec file
2017-06-15 12:05:11 +01:00
Richard Hughes
20d2d726e0
Fix the self tests when running on PPC64 big endian
2017-06-15 12:05:11 +01:00
Richard Hughes
109526bf34
trivial: Fix a harmless warning when building RPMs
2017-06-15 11:07:00 +01:00