Commit Graph

9641 Commits

Author SHA1 Message Date
Richard Hughes
0f89bcd47d trivial: Update the run-fwupd.sh script to include all debugging 2015-10-30 08:49:03 +00:00
Richard Hughes
bb840ceaff Do not assume that the compressed XML data will be NUL terminated
In most cases this is out of chance, but in some random cases the gzip
decompressor decides to reuse the input buffer as a decompression buffer,
which means we get junk data after the decompressed text.

To solve this, just truncate the data at the reported size, and then feed this
into the XML parser.

Fixes: https://github.com/hughsie/fwupd/issues/36
2015-10-30 08:47:28 +00:00
Richard Hughes
f2fca01989 Avoid seeking when reading the file magic during refresh 2015-10-30 08:44:44 +00:00
Mario Limonciello
7b452068b2 increment changelog 2015-10-28 10:49:56 -05:00
Mario Limonciello
77d1e2163f drop all patches, upstream 2015-10-28 10:48:21 -05:00
Mario Limonciello
6252411adc update build dependency requirements 2015-10-28 10:48:03 -05:00
Mario Limonciello
5c3e2c3c52 Release fwupd 0.5.2
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABAgAGBQJWMJxqAAoJEBesuo36lw4XWjAIALrvCm1n3EjRyEzQnv7qowPQ
 MuTDodjppMq4ZyAFB3/wFQ787LL5PYpTBVeMrnIoxQZ9zLpQexhnXdCuxXWGwMgU
 MBzzJa1KsdCejkEYUkq8Gweo4aZj39vuq8rn/phpgotLBKf7LsSdlqtUhShG5b3A
 4bSE30630lCb+xImP51IevUVSW1MXYt/myAmHPRtcQNxn34we40vUl18qGojYZJo
 /h3wC0mcZ+bjqPkBznVBV8B114kTTUsqsb2D2tMIY0Nc1v+ZOKEjwpPPJF3uhMAm
 TCCtGoFXUBB711xGOD2j6SgOyjAlSVrEjrG+TH1ETQoV8Mon7quuwDFMY3A4Dhc=
 =Mq20
 -----END PGP SIGNATURE-----

Merge tag '0.5.2' into debian

Release fwupd 0.5.2
2015-10-28 10:46:46 -05:00
Richard Hughes
5454783699 trivial: post release version bump 2015-10-28 10:00:17 +00:00
Richard Hughes
e22ce82dca Release fwupd 0.5.2 2015-10-28 09:59:06 +00:00
Richard Hughes
727664fa20 Clear the in-memory firmware store only after parsing a valid XML file
If we send junk to UpdateMetadata() the deamon did something like this:

* Clear existing entries from memory
* Try to load junk file into memory -> error

This left us with no entries in the in-memory store, which required the user to
either keep retrying the 'fwupdmgr update' until it worked or just forced them
to restart fwupd so it loaded the old valid store from the cache file.

Now, only clear the in-memory store and add the new firmware entries when
we know the file has been parsed correctly.

Fixes: https://github.com/hughsie/fwupd/issues/35
2015-10-27 09:56:13 +00:00
Richard Hughes
d9fa06b8c9 trivial: Fix compile with really new versions of appstream-glib 2015-10-18 20:56:16 +01:00
Richard Hughes
709d0114e3 Fix verify-update to produce components with the correct provide values 2015-10-09 12:17:08 +01:00
Richard Hughes
60f48c2013 trivial: Do no ship the old-style cleanup functions 2015-10-08 20:25:51 +01:00
Richard Hughes
3f23650f15 Add profiling data to debug slow startup times 2015-10-08 20:11:57 +01:00
Richard Hughes
d449447fc8 Add the update description to the GetDetails results 2015-10-08 20:11:34 +01:00
Richard Hughes
01d9ac56f0 trivial: Fix make check 2015-10-08 19:57:03 +01:00
Richard Hughes
5d14deff4a Support cabinet archives files with more than one firmware
This allows a vendor to upload a single file that targets different versions of
the same hardware. If this feature is used, the metainfo.xml files *must* have
something like <checksum target="content" filename="firmware2.rom"/> inside the
latest <release> tag.
2015-10-07 17:45:11 +01:00
Richard Hughes
9e1768940d When the version is from the 'FW' extension do not cache the device
This ensures we don't get confused when plugging in and out multiple ColorHug
devices of the same kind but with different version numbers.
2015-10-06 10:37:32 +01:00
Richard Hughes
2b549a6419 trivial: Remove unused struct member 2015-10-06 10:37:32 +01:00
Richard Hughes
51189ffeae Merge pull request #33 from attente/master
trivial: Fix configure checks for docbook2man and gcab
2015-10-06 07:31:36 +01:00
William Hua
7447fd16ad trivial: Add configure check for docbook2man 2015-10-05 22:44:14 -04:00
William Hua
666cd7f0d9 trivial: Use correct test in configure check for gcab 2015-10-05 22:43:42 -04:00
Mario Limonciello
95a2d17120 trivial: fix my email address 2015-10-01 15:09:43 -05:00
Mario Limonciello
ae64bc1bb7 Re-do debian/changelog since was rejected from NEW for copyright issue 2015-09-30 17:20:15 -05:00
Mario Limonciello
1a22732db3 Add copyright license for data/tests/*/firmware.metainfo.xml files 2015-09-30 17:18:42 -05:00
Richard Hughes
2d32b8f0e9 trivial: Include the filename in the error when fwupd.conf is not found
This can happen if the user deletes it from /etc or is running inside a prefix
shell, e.g. jhbuild.
2015-09-28 13:56:42 +01:00
Mario Limonciello
24c21df9c1 Backport 9d76a877 from upstream to clarify the error message when no updates are available. 2015-09-26 08:46:53 -05:00
kalev
9b614b5017 Merge pull request #32 from mirco/master
require appstream-glib 0.5.1
2015-09-24 22:41:56 +02:00
Mirco Tischler
52016ebdd4 require appstream-glib 0.5.1
Use of g_autoptr isn't supported in 0.5.0.
2015-09-24 22:28:59 +02:00
Richard Hughes
a48106f1f8 Show the dotted-decimal representation of the UEFI version number 2015-09-24 10:08:18 +01:00
Mario Limonciello
ef60070adc Backport 697eb603 from upstream to fix fallback from online to offline modes for installing CAB files. 2015-09-23 07:39:13 -05:00
Richard Hughes
697eb60320 Ensure D-Bus remote errors are registered at fwupdmgr startup
Fixes: https://github.com/hughsie/fwupd/issues/31
2015-09-23 10:04:17 +01:00
Richard Hughes
4460635975 trivial: post release version bump 2015-09-21 11:46:24 +01:00
Richard Hughes
a87f5f342b Release fwupd 0.5.1 2015-09-21 11:45:26 +01:00
Richard Hughes
f184d152ec trivial: Sync example spec file with downstream 2015-09-21 08:45:22 +01:00
Kalev Lember
1f819d7adc offline update: Use glib api for for reading symlinks
readlink() man page says that applications must not rely on it returning
null-terminated links. This commit switches it to use g_file_read_link()
instead that has much nicer API and shields us from readlink() oddities.
2015-09-18 13:54:34 +02:00
Richard Hughes
9d76a877db Fix the error message when no devices can be updated
Fixes: https://github.com/hughsie/fwupd/issues/30
2015-09-17 12:49:07 +01:00
Richard Hughes
f00f1e90ea trivial: Do not show the D-Bus error prefix 2015-09-17 12:48:26 +01:00
Richard Hughes
8a22cd1b23 trivial: post release version bump 2015-09-15 11:07:32 +01:00
Richard Hughes
b6f9fbf1fe Release fwupd 0.5.0 2015-09-15 11:06:08 +01:00
Richard Hughes
c2da4b2580 Do not reboot if racing with the PackageKit offline update mechanism
The very first thing the PackageKit updater does is delete this symlink...
2015-09-14 12:15:41 +01:00
Richard Hughes
46832432ea Raise the dep on GLib to support and use g_autoptr() 2015-09-11 13:43:15 +01:00
Richard Hughes
033ccba050 Do not merge the existing firmware metadata with the submitted files
This just causes confusion and makes things hard to debug.
2015-09-10 15:06:26 +01:00
Richard Hughes
46b329d58c trivial: Use the new AppStream format for the VIA firmware 2015-09-10 14:45:36 +01:00
Richard Hughes
9d306b3c13 trivial: Update example spec file 2015-09-10 09:34:25 +01:00
Richard Hughes
b3d5320d07 trivial: post release version bump 2015-09-10 09:30:53 +01:00
Richard Hughes
49e25934f1 Release fwupd 0.1.6 2015-09-10 09:29:48 +01:00
Richard Hughes
2257cee8ee Simplify the version properties on devices to avoid complexity and bugs
This reduces the number of 'version' properties from 4 to 2... We can just use
these consistently to mean 'older' and 'newer'.
2015-09-08 16:53:49 +01:00
Richard Hughes
82856d9843 Add application metadata when getting the updates list 2015-09-08 16:53:49 +01:00
Richard Hughes
51f5083b09 Depend on appstream-glib >= 0.5.0 2015-09-08 16:53:49 +01:00