Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dralley authored and kontura committed Jun 1, 2021
1 parent 1ec1e76 commit 60593e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/load_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ typedef struct {
GStringChunk *chunk;
GHashTable *pkglist_ht;
GHashTable *ignored_pkgIds; /*!< If there are multiple packages
wich have the same checksum (pkgId) but they are in fact different
which have the same checksum (pkgId) but they are in fact different
(they have different basenames, mtimes or sizes),
then we want to ignore these packages during
loading. It's because the pkgId is used to pair metadata from
Expand Down Expand Up @@ -495,7 +495,7 @@ cr_metadata_load_modulemd(cr_Metadata *md,
&tmp_err);
if (!result) {
if (!tmp_err){
g_set_error(err, CRE_MODULEMD, CREATEREPO_C_ERROR,
g_set_error(err, CRE_MODULEMD, CREATEREPO_C_ERROR,
"Unknown error in libmodulemd with %s",
modulemd_metadatum->name);
}else{
Expand Down Expand Up @@ -586,7 +586,7 @@ cr_metadata_load_xml(cr_Metadata *md,
break;
default:
// Well, this SHOULD never happend!
// (md->key SHOULD be setted only by cr_metadata_new()
// (md->key SHOULD be set only by cr_metadata_new()
// and it SHOULD set only valid key values)
g_critical("%s: Unknown hash table key selected", __func__);
assert(0);
Expand All @@ -610,7 +610,7 @@ cr_metadata_load_xml(cr_Metadata *md,
)
{
// We got a key (checksum, filename, pkg name, ..)
// which has a multiple occurences which are different.
// which has a multiple occurrences which are different.
// Ignore such key
g_debug("%s: Key \"%s\" is present multiple times and with "
"different values. Ignoring all occurrences. "
Expand Down
2 changes: 1 addition & 1 deletion src/xml_parser_filelists.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ cr_start_handler(void *pdata, const xmlChar *element, const xmlChar **attr)
if (!pkgId) {
// Package without a pkgid attr is error
g_set_error(&pd->err, ERR_DOMAIN, ERR_CODE_XML,
"Package pkgid attributte is missing!");
"Package pkgid attribute is missing!");
break;
}

Expand Down
4 changes: 2 additions & 2 deletions src/xml_parser_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ typedef struct _cr_ParserData {

int do_files; /*!<
If == 0 then parser will ignore files elements in the primary.xml.
This is useful when you are inteding parse primary.xml as well as
This is useful when you are intending to parse primary.xml as well as
filelists.xml. In this case files will be filled from filelists.xml.
If you are inteding parse only the primary.xml then it coud be useful
If you are intending to parse only the primary.xml then it could be useful
to parse files in primary.
If you parse files from both a primary.xml and a filelists.xml
then some files in package object will be duplicated! */
Expand Down

0 comments on commit 60593e1

Please sign in to comment.