Commit 203ed841 authored by Richard Hughes's avatar Richard Hughes
Browse files

trivial: Codespell fixes

parent bde99ef4
...@@ -78,7 +78,7 @@ Enterprise use ...@@ -78,7 +78,7 @@ Enterprise use
The flow of updates can be controlled in the enterprise using the The flow of updates can be controlled in the enterprise using the
"approved updates" feature. This allows the domain administrator to filter "approved updates" feature. This allows the domain administrator to filter
the possible updates from a central server (e.g. the LVFS, or a mirror) the possible updates from a central server (e.g. the LVFS, or a mirror)
to only firmware that have been tested specifically in your organisation. to only firmware that have been tested specifically in your organization.
The list of approved updates can be enabled by adding `ApprovalRequired=true` The list of approved updates can be enabled by adding `ApprovalRequired=true`
to the remote configuration file, e.g. `lvfs.conf`. Once enabled, the to the remote configuration file, e.g. `lvfs.conf`. Once enabled, the
...@@ -103,7 +103,7 @@ Other frontends ...@@ -103,7 +103,7 @@ Other frontends
After the firmware has been downloaded a popup will be displayed in GNOME After the firmware has been downloaded a popup will be displayed in GNOME
Software to perform the update. Software to perform the update.
2. [KDE Discover](https://userbase.kde.org/Discover) is the software centre, 2. [KDE Discover](https://userbase.kde.org/Discover) is the software center,
generally bundled with KDE Plasma. With the release of generally bundled with KDE Plasma. With the release of
[KDE Plasma 5.14](https://www.kde.org/announcements/plasma-5.14.0.php), [KDE Plasma 5.14](https://www.kde.org/announcements/plasma-5.14.0.php),
a new fwupd backend has been implemented in KDE Discover for firmware updates. a new fwupd backend has been implemented in KDE Discover for firmware updates.
......
...@@ -31,5 +31,5 @@ this repository. ...@@ -31,5 +31,5 @@ this repository.
Failing that, please report the issue against the `fwupd` component in Red Hat Failing that, please report the issue against the `fwupd` component in Red Hat
bugzilla, with the security checkbox set. You should get a response within 3 bugzilla, with the security checkbox set. You should get a response within 3
days. We have no bug bountry program, but we're happy to credit you in updates days. We have no bug bounty program, but we're happy to credit you in updates
if this is what you would like us to do. if this is what you would like us to do.
#!/usr/bin/python3 #!/usr/bin/python3
# #
# Copyright (C) 2017 Max Ehrlich max.ehr@gmail.com # Copyright (C) 2017 Max Ehrlich maxehr@gmail.com
# #
# SPDX-License-Identifier: LGPL-2.1+ # SPDX-License-Identifier: LGPL-2.1+
# #
...@@ -107,7 +107,7 @@ def main(args): ...@@ -107,7 +107,7 @@ def main(args):
print('Creating metainfo') print('Creating metainfo')
make_firmware_metainfo(args, dir) make_firmware_metainfo(args, dir)
print('Cabbing firmware files') print('Creating cabinet file')
create_firmware_cab(args, dir) create_firmware_cab(args, dir)
print('Done') print('Done')
......
...@@ -28,7 +28,7 @@ complete -c fwupdmgr -l no-reboot-check -d 'Do not check for reboot after update ...@@ -28,7 +28,7 @@ complete -c fwupdmgr -l no-reboot-check -d 'Do not check for reboot after update
complete -c fwupdmgr -l no-safety-check -d 'Do not perform device safety checks' complete -c fwupdmgr -l no-safety-check -d 'Do not perform device safety checks'
complete -c fwupdmgr -l no-history -d 'Do not write to the history database' complete -c fwupdmgr -l no-history -d 'Do not write to the history database'
complete -c fwupdmgr -l show-all -d 'Show all results' complete -c fwupdmgr -l show-all -d 'Show all results'
complete -c fwupdmgr -l disable-ssl-strict -d 'Ignore SSL strict checks when downloading files' complete -c fwupdmgr -l disable-ssl-strict -d 'Ignore SSL strict checks when downloading'
complete -c fwupdmgr -l filter -d 'Filter with a set of device flags' complete -c fwupdmgr -l filter -d 'Filter with a set of device flags'
complete -c fwupdmgr -l ignore-power -d 'Ignore requirement of external power source' complete -c fwupdmgr -l ignore-power -d 'Ignore requirement of external power source'
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<li>Add support for ThunderBolt retimers</li> <li>Add support for ThunderBolt retimers</li>
<li>Add switch-branch command to fwupdtool and fwupdmgr</li> <li>Add switch-branch command to fwupdtool and fwupdmgr</li>
<li>Allow blocking specific firmware releases by checksum</li> <li>Allow blocking specific firmware releases by checksum</li>
<li>Allow contructing a firmware with multiple images</li> <li>Allow constructing a firmware with multiple images</li>
<li>Allow firmware to require specific features from front-end clients</li> <li>Allow firmware to require specific features from front-end clients</li>
<li>Allow updating the dbx using the LVFS, validating it is safe to apply</li> <li>Allow updating the dbx using the LVFS, validating it is safe to apply</li>
<li>Include the HSI results and attributes in the uploaded report</li> <li>Include the HSI results and attributes in the uploaded report</li>
......
...@@ -452,7 +452,7 @@ fu_plugin_open (FuPlugin *self, const gchar *filename, GError **error) ...@@ -452,7 +452,7 @@ fu_plugin_open (FuPlugin *self, const gchar *filename, GError **error)
return TRUE; return TRUE;
} }
/* order of usefullness to the user */ /* order of usefulness to the user */
static const gchar * static const gchar *
fu_plugin_build_device_update_error (FuPlugin *self) fu_plugin_build_device_update_error (FuPlugin *self)
{ {
...@@ -1020,7 +1020,7 @@ fu_plugin_set_smbios (FuPlugin *self, FuSmbios *smbios) ...@@ -1020,7 +1020,7 @@ fu_plugin_set_smbios (FuPlugin *self, FuSmbios *smbios)
* *
* Set the minimum time that should be waited in-between the call to * Set the minimum time that should be waited in-between the call to
* fu_plugin_coldplug_prepare() and fu_plugin_coldplug(). This is usually going * fu_plugin_coldplug_prepare() and fu_plugin_coldplug(). This is usually going
* to be the minimum hardware initialisation time from a datasheet. * to be the minimum hardware initialization time from a datasheet.
* *
* It is better to use this function rather than using a sleep() in the plugin * It is better to use this function rather than using a sleep() in the plugin
* itself as then only one delay is done in the daemon rather than waiting for * itself as then only one delay is done in the daemon rather than waiting for
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* SECTION:fu-quirks * SECTION:fu-quirks
* @short_description: device quirks * @short_description: device quirks
* *
* Quirks can be used to modify device behaviour. * Quirks can be used to modify device behavior.
* When fwupd is installed in long-term support distros it's very hard to * When fwupd is installed in long-term support distros it's very hard to
* backport new versions as new hardware is released. * backport new versions as new hardware is released.
* *
......
...@@ -17,7 +17,7 @@ struct _FuSecurityAttrs { ...@@ -17,7 +17,7 @@ struct _FuSecurityAttrs {
GPtrArray *attrs; GPtrArray *attrs;
}; };
/* probaly sane to *not* make this part of the ABI */ /* probably sane to *not* make this part of the ABI */
#define FWUPD_SECURITY_ATTR_ID_DOC_URL "https://fwupd.github.io/hsi.html" #define FWUPD_SECURITY_ATTR_ID_DOC_URL "https://fwupd.github.io/hsi.html"
G_DEFINE_TYPE (FuSecurityAttrs, fu_security_attrs, G_TYPE_OBJECT) G_DEFINE_TYPE (FuSecurityAttrs, fu_security_attrs, G_TYPE_OBJECT)
...@@ -145,7 +145,7 @@ fu_security_attrs_remove_all (FuSecurityAttrs *self) ...@@ -145,7 +145,7 @@ fu_security_attrs_remove_all (FuSecurityAttrs *self)
* @self: A #FuSecurityAttrs * @self: A #FuSecurityAttrs
* @flags: Flags to use while calcuating the HSI * @flags: Flags to use while calcuating the HSI
* *
* Calculates the HSI string from the appended attribues. * Calculates the HSI string from the appended attributes.
* *
* Returns: (transfer full): a string or %NULL * Returns: (transfer full): a string or %NULL
* *
......
...@@ -221,14 +221,14 @@ fu_device_metadata_func (void) ...@@ -221,14 +221,14 @@ fu_device_metadata_func (void)
g_assert_false (fu_device_get_metadata_boolean (device, "unknown")); g_assert_false (fu_device_get_metadata_boolean (device, "unknown"));
/* integer */ /* integer */
fu_device_set_metadata_integer (device, "dum", 12345); fu_device_set_metadata_integer (device, "bam", 12345);
g_assert_cmpstr (fu_device_get_metadata (device, "dum"), ==, "12345"); g_assert_cmpstr (fu_device_get_metadata (device, "bam"), ==, "12345");
g_assert_cmpint (fu_device_get_metadata_integer (device, "dum"), ==, 12345); g_assert_cmpint (fu_device_get_metadata_integer (device, "bam"), ==, 12345);
g_assert_cmpint (fu_device_get_metadata_integer (device, "unknown"), ==, G_MAXUINT); g_assert_cmpint (fu_device_get_metadata_integer (device, "unknown"), ==, G_MAXUINT);
/* broken integer */ /* broken integer */
fu_device_set_metadata (device, "dum", "123junk"); fu_device_set_metadata (device, "bam", "123junk");
g_assert_cmpint (fu_device_get_metadata_integer (device, "dum"), ==, G_MAXUINT); g_assert_cmpint (fu_device_get_metadata_integer (device, "bam"), ==, G_MAXUINT);
fu_device_set_metadata (device, "huge", "4294967296"); /* not 32 bit */ fu_device_set_metadata (device, "huge", "4294967296"); /* not 32 bit */
g_assert_cmpint (fu_device_get_metadata_integer (device, "huge"), ==, G_MAXUINT); g_assert_cmpint (fu_device_get_metadata_integer (device, "huge"), ==, G_MAXUINT);
} }
......
...@@ -477,3 +477,17 @@ if makensis.found() ...@@ -477,3 +477,17 @@ if makensis.found()
join_paths(meson.source_root(), 'contrib', 'setup-win32.nsi'), join_paths(meson.source_root(), 'contrib', 'setup-win32.nsi'),
]) ])
endif endif
codespell = find_program('codespell', required : false)
if codespell.found()
run_target('codespell',
command: [
codespell,
meson.source_root(),
'--write-changes',
'--builtin', 'en-GB_to_en-US',
'--skip', '*.po,*.csv,*.svg,*.p7c,subprojects,.git,pcrs,build*',
'--ignore-words-list', 'conexant,Conexant,gir,GIR,hsi,HSI,cancelled,Cancelled',
]
)
endif
...@@ -91,7 +91,7 @@ fu_bcm57xx_veritem_new (const guint8 *buf, gsize bufsz) ...@@ -91,7 +91,7 @@ fu_bcm57xx_veritem_new (const guint8 *buf, gsize bufsz)
{ NULL, NULL, 0 } { NULL, NULL, 0 }
}; };
/* dont assume this is NUL terminated */ /* do not assume this is NUL terminated */
tmp = g_strndup ((const gchar *) buf, bufsz); tmp = g_strndup ((const gchar *) buf, bufsz);
if (tmp == NULL || tmp[0] == '\0') if (tmp == NULL || tmp[0] == '\0')
return NULL; return NULL;
......
...@@ -426,7 +426,7 @@ fu_bcm57xx_device_prepare_firmware (FuDevice *device, ...@@ -426,7 +426,7 @@ fu_bcm57xx_device_prepare_firmware (FuDevice *device,
} }
if (g_getenv ("FWUPD_BCM57XX_VERBOSE") != NULL) { if (g_getenv ("FWUPD_BCM57XX_VERBOSE") != NULL) {
g_autofree gchar *str = fu_firmware_to_string (firmware); g_autofree gchar *str = fu_firmware_to_string (firmware);
g_debug ("existing device firware: %s", str); g_debug ("existing device firmware: %s", str);
} }
/* merge in all the provided images into the existing firmware */ /* merge in all the provided images into the existing firmware */
...@@ -451,7 +451,7 @@ fu_bcm57xx_device_prepare_firmware (FuDevice *device, ...@@ -451,7 +451,7 @@ fu_bcm57xx_device_prepare_firmware (FuDevice *device,
} }
if (g_getenv ("FWUPD_BCM57XX_VERBOSE") != NULL) { if (g_getenv ("FWUPD_BCM57XX_VERBOSE") != NULL) {
g_autofree gchar *str = fu_firmware_to_string (firmware); g_autofree gchar *str = fu_firmware_to_string (firmware);
g_debug ("proposed device firware: %s", str); g_debug ("proposed device firmware: %s", str);
} }
/* success */ /* success */
......
...@@ -668,7 +668,7 @@ fu_bcm57xx_recovery_device_open (FuDevice *device, GError **error) ...@@ -668,7 +668,7 @@ fu_bcm57xx_recovery_device_open (FuDevice *device, GError **error)
g_set_error (error, g_set_error (error,
G_IO_ERROR, G_IO_ERROR,
G_IO_ERROR_NOT_SUPPORTED, G_IO_ERROR_NOT_SUPPORTED,
"cound not mmap %s: %s", "could not mmap %s: %s",
fn, strerror(errno)); fn, strerror(errno));
return FALSE; return FALSE;
} }
......
...@@ -526,7 +526,7 @@ main (int argc, char **argv) ...@@ -526,7 +526,7 @@ main (int argc, char **argv)
/* change path */ /* change path */
g_setenv ("FWUPD_SYSFSFWDIR", TESTDATADIR, TRUE); g_setenv ("FWUPD_SYSFSFWDIR", TESTDATADIR, TRUE);
/* change behaviour */ /* change behavior */
sysfsdir = fu_common_get_path (FU_PATH_KIND_SYSFSDIR_FW); sysfsdir = fu_common_get_path (FU_PATH_KIND_SYSFSDIR_FW);
g_setenv ("FWUPD_UEFI_ESP_PATH", sysfsdir, TRUE); g_setenv ("FWUPD_UEFI_ESP_PATH", sysfsdir, TRUE);
g_setenv ("FWUPD_UEFI_TEST", "1", TRUE); g_setenv ("FWUPD_UEFI_TEST", "1", TRUE);
......
...@@ -9,7 +9,7 @@ inspire everyone make the world a more creative place. ...@@ -9,7 +9,7 @@ inspire everyone make the world a more creative place.
From 2016 Wacom has been using a HID-based proprietary flashing algorithm which From 2016 Wacom has been using a HID-based proprietary flashing algorithm which
has been documented by support team at Wacom and provided under NDA under the has been documented by support team at Wacom and provided under NDA under the
understanding it would be used to build a plugin under a LGPLv2+ licence. understanding it would be used to build a plugin under a LGPLv2+ license.
Wacom devices are actually composite devices, with the main ARM CPU being Wacom devices are actually composite devices, with the main ARM CPU being
programmed using a more complicated erase, write, verify algorithm based programmed using a more complicated erase, write, verify algorithm based
......
...@@ -66,8 +66,8 @@ class Rasterizer: ...@@ -66,8 +66,8 @@ class Rasterizer:
font_desc = "Sans %fpx" % (height / 32,) font_desc = "Sans %fpx" % (height / 32,)
fd = Pango.FontDescription(font_desc) fd = Pango.FontDescription(font_desc)
fo = cairo.FontOptions() font_option = cairo.FontOptions()
fo.set_antialias(cairo.ANTIALIAS_SUBPIXEL) font_option.set_antialias(cairo.ANTIALIAS_SUBPIXEL)
l = Pango.Language.from_string(language) l = Pango.Language.from_string(language)
img = cairo.ImageSurface(cairo.FORMAT_RGB24, 1, 1) img = cairo.ImageSurface(cairo.FORMAT_RGB24, 1, 1)
...@@ -77,7 +77,7 @@ class Rasterizer: ...@@ -77,7 +77,7 @@ class Rasterizer:
pctx.set_font_description(fd) pctx.set_font_description(fd)
pctx.set_language(l) pctx.set_language(l)
fs = pctx.load_fontset(fd, l) fs = pctx.load_fontset(fd, l)
PangoCairo.context_set_font_options(pctx, fo) PangoCairo.context_set_font_options(pctx, font_option)
attrs = Pango.AttrList() attrs = Pango.AttrList()
length = len(bytes(string, "utf8")) length = len(bytes(string, "utf8"))
...@@ -112,7 +112,7 @@ class Rasterizer: ...@@ -112,7 +112,7 @@ class Rasterizer:
cctx = cairo.Context(img) cctx = cairo.Context(img)
layout = PangoCairo.create_layout(cctx) layout = PangoCairo.create_layout(cctx)
pctx = layout.get_context() pctx = layout.get_context()
PangoCairo.context_set_font_options(pctx, fo) PangoCairo.context_set_font_options(pctx, font_option)
cctx.set_source_rgb(1, 1, 1) cctx.set_source_rgb(1, 1, 1)
cctx.move_to(x, y) cctx.move_to(x, y)
......
...@@ -288,7 +288,7 @@ fu_history_migrate_database_v5 (FuHistory *self, GError **error) ...@@ -288,7 +288,7 @@ fu_history_migrate_database_v5 (FuHistory *self, GError **error)
return TRUE; return TRUE;
} }
/* returns 0 if database is not initialised */ /* returns 0 if database is not initialized */
static guint static guint
fu_history_get_schema_version (FuHistory *self) fu_history_get_schema_version (FuHistory *self)
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment