mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-28 13:32:26 +00:00
trivial: case insensitive while explorering cabinet files
The cabinet file's extension name disregards uppercase or lowercase
This commit is contained in:
parent
2a0c066a2f
commit
ae422989f3
@ -2649,9 +2649,10 @@ fu_engine_create_metadata (FuEngine *self, XbBuilder *builder,
|
||||
g_autoptr(XbBuilderSource) source = NULL;
|
||||
g_autoptr(GError) error_local = NULL;
|
||||
const gchar *fn = g_ptr_array_index (files, i);
|
||||
g_autofree gchar *fn_lowercase = g_ascii_strdown (fn, -1);
|
||||
|
||||
/* check is cab file */
|
||||
if (!g_str_has_suffix (fn, ".cab")) {
|
||||
if (!g_str_has_suffix (fn_lowercase, ".cab")) {
|
||||
g_debug ("ignoring: %s", fn);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user