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

trivial: Codespell fixes

parent bde99ef4
......@@ -78,7 +78,7 @@ Enterprise use
The flow of updates can be controlled in the enterprise using the
"approved updates" feature. This allows the domain administrator to filter
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`
to the remote configuration file, e.g. `lvfs.conf`. Once enabled, the
......@@ -103,7 +103,7 @@ Other frontends
After the firmware has been downloaded a popup will be displayed in GNOME
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
[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.
......
......@@ -31,5 +31,5 @@ this repository.
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
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.
#!/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+
#
......@@ -107,7 +107,7 @@ def main(args):
print('Creating metainfo')
make_firmware_metainfo(args, dir)
print('Cabbing firmware files')
print('Creating cabinet file')
create_firmware_cab(args, dir)
print('Done')
......
......@@ -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-history -d 'Do not write to the history database'
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 ignore-power -d 'Ignore requirement of external power source'
......
......@@ -54,7 +54,7 @@
<li>Add support for ThunderBolt retimers</li>
<li>Add switch-branch command to fwupdtool and fwupdmgr</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 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>
......
......@@ -452,7 +452,7 @@ fu_plugin_open (FuPlugin *self, const gchar *filename, GError **error)
return TRUE;
}
/* order of usefullness to the user */
/* order of usefulness to the user */
static const gchar *
fu_plugin_build_device_update_error (FuPlugin *self)
{
......@@ -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
* 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
* itself as then only one delay is done in the daemon rather than waiting for
......
......@@ -25,7 +25,7 @@
* SECTION:fu-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
* backport new versions as new hardware is released.
*
......
......@@ -17,7 +17,7 @@ struct _FuSecurityAttrs {
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"
G_DEFINE_TYPE (FuSecurityAttrs, fu_security_attrs, G_TYPE_OBJECT)
......@@ -145,7 +145,7 @@ fu_security_attrs_remove_all (FuSecurityAttrs *self)
* @self: A #FuSecurityAttrs
* @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
*
......
......@@ -221,14 +221,14 @@ fu_device_metadata_func (void)
g_assert_false (fu_device_get_metadata_boolean (device, "unknown"));
/* integer */
fu_device_set_metadata_integer (device, "dum", 12345);
g_assert_cmpstr (fu_device_get_metadata (device, "dum"), ==, "12345");
g_assert_cmpint (fu_device_get_metadata_integer (device, "dum"), ==, 12345);
fu_device_set_metadata_integer (device, "bam", 12345);
g_assert_cmpstr (fu_device_get_metadata (device, "bam"), ==, "12345");
g_assert_cmpint (fu_device_get_metadata_integer (device, "bam"), ==, 12345);
g_assert_cmpint (fu_device_get_metadata_integer (device, "unknown"), ==, G_MAXUINT);
/* broken integer */
fu_device_set_metadata (device, "dum", "123junk");
g_assert_cmpint (fu_device_get_metadata_integer (device, "dum"), ==, G_MAXUINT);
fu_device_set_metadata (device, "bam", "123junk");
g_assert_cmpint (fu_device_get_metadata_integer (device, "bam"), ==, G_MAXUINT);
fu_device_set_metadata (device, "huge", "4294967296"); /* not 32 bit */
g_assert_cmpint (fu_device_get_metadata_integer (device, "huge"), ==, G_MAXUINT);
}
......
......@@ -477,3 +477,17 @@ if makensis.found()
join_paths(meson.source_root(), 'contrib', 'setup-win32.nsi'),
])
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)
{ NULL, NULL, 0 }
};
/* dont assume this is NUL terminated */
/* do not assume this is NUL terminated */
tmp = g_strndup ((const gchar *) buf, bufsz);
if (tmp == NULL || tmp[0] == '\0')
return NULL;
......
......@@ -426,7 +426,7 @@ fu_bcm57xx_device_prepare_firmware (FuDevice *device,
}
if (g_getenv ("FWUPD_BCM57XX_VERBOSE") != NULL) {
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 */
......@@ -451,7 +451,7 @@ fu_bcm57xx_device_prepare_firmware (FuDevice *device,
}
if (g_getenv ("FWUPD_BCM57XX_VERBOSE") != NULL) {
g_autofree gchar *str = fu_firmware_to_string (firmware);
g_debug ("proposed device firware: %s", str);
g_debug ("proposed device firmware: %s", str);
}
/* success */
......
......@@ -668,7 +668,7 @@ fu_bcm57xx_recovery_device_open (FuDevice *device, GError **error)
g_set_error (error,
G_IO_ERROR,
G_IO_ERROR_NOT_SUPPORTED,
"cound not mmap %s: %s",
"could not mmap %s: %s",
fn, strerror(errno));
return FALSE;
}
......
......@@ -526,7 +526,7 @@ main (int argc, char **argv)
/* change path */
g_setenv ("FWUPD_SYSFSFWDIR", TESTDATADIR, TRUE);
/* change behaviour */
/* change behavior */
sysfsdir = fu_common_get_path (FU_PATH_KIND_SYSFSDIR_FW);
g_setenv ("FWUPD_UEFI_ESP_PATH", sysfsdir, TRUE);
g_setenv ("FWUPD_UEFI_TEST", "1", TRUE);
......
......@@ -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
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
programmed using a more complicated erase, write, verify algorithm based
......
......@@ -66,8 +66,8 @@ class Rasterizer:
font_desc = "Sans %fpx" % (height / 32,)
fd = Pango.FontDescription(font_desc)
fo = cairo.FontOptions()
fo.set_antialias(cairo.ANTIALIAS_SUBPIXEL)
font_option = cairo.FontOptions()
font_option.set_antialias(cairo.ANTIALIAS_SUBPIXEL)
l = Pango.Language.from_string(language)
img = cairo.ImageSurface(cairo.FORMAT_RGB24, 1, 1)
......@@ -77,7 +77,7 @@ class Rasterizer:
pctx.set_font_description(fd)
pctx.set_language(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()
length = len(bytes(string, "utf8"))
......@@ -112,7 +112,7 @@ class Rasterizer:
cctx = cairo.Context(img)
layout = PangoCairo.create_layout(cctx)
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.move_to(x, y)
......
......@@ -288,7 +288,7 @@ fu_history_migrate_database_v5 (FuHistory *self, GError **error)
return TRUE;
}
/* returns 0 if database is not initialised */
/* returns 0 if database is not initialized */
static guint
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