From 595b011a8f194b05a788aaaab265008d46b2ec92 Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Thu, 20 Aug 2015 15:54:50 -0600 Subject: [PATCH] updateinfo: Fix a typo in the package release attribute --- examples/python/updateinfo_parsing.py | 2 +- src/python/updaterecord-py.c | 2 +- src/xml_dump_updateinfo.c | 2 +- tests/python/tests/test_updateinfo.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/python/updateinfo_parsing.py b/examples/python/updateinfo_parsing.py index 93902c8..364ed63 100755 --- a/examples/python/updateinfo_parsing.py +++ b/examples/python/updateinfo_parsing.py @@ -40,7 +40,7 @@ def parse_updateinfo(path): for pkg in col.packages: print " Name: %s" % pkg.name print " Version: %s" % pkg.version - print " Relase: %s" % pkg.release + print " Release: %s" % pkg.release print " Epoch: %s" % pkg.epoch print " Arch: %s" % pkg.arch print " Src: %s" % pkg.src diff --git a/src/python/updaterecord-py.c b/src/python/updaterecord-py.c index 13d5e3f..388cb7a 100644 --- a/src/python/updaterecord-py.c +++ b/src/python/updaterecord-py.c @@ -370,7 +370,7 @@ static PyGetSetDef updaterecord_getsetters[] = { {"rights", (getter)get_str, (setter)set_str, "Copyrights", OFFSET(rights)}, {"release", (getter)get_str, (setter)set_str, - "Update relase", OFFSET(release)}, + "Update release", OFFSET(release)}, {"pushcount", (getter)get_str, (setter)set_str, "Pushcount", OFFSET(pushcount)}, {"severity", (getter)get_str, (setter)set_str, diff --git a/src/xml_dump_updateinfo.c b/src/xml_dump_updateinfo.c index b9f3b96..4fb5720 100644 --- a/src/xml_dump_updateinfo.c +++ b/src/xml_dump_updateinfo.c @@ -42,7 +42,7 @@ cr_xml_dump_updatecollectionpackages(xmlNodePtr collection, GSList *packages) package = xmlNewChild(collection, NULL, BAD_CAST "package", NULL); cr_xmlNewProp_c(package, BAD_CAST "name", BAD_CAST pkg->name); cr_xmlNewProp_c(package, BAD_CAST "version", BAD_CAST pkg->version); - cr_xmlNewProp_c(package, BAD_CAST "relase", BAD_CAST pkg->release); + cr_xmlNewProp_c(package, BAD_CAST "release", BAD_CAST pkg->release); cr_xmlNewProp_c(package, BAD_CAST "epoch", BAD_CAST pkg->epoch); cr_xmlNewProp_c(package, BAD_CAST "arch", BAD_CAST pkg->arch); cr_xmlNewProp_c(package, BAD_CAST "src", BAD_CAST pkg->src); diff --git a/tests/python/tests/test_updateinfo.py b/tests/python/tests/test_updateinfo.py index 129008f..edde1cd 100644 --- a/tests/python/tests/test_updateinfo.py +++ b/tests/python/tests/test_updateinfo.py @@ -190,7 +190,7 @@ class TestCaseUpdateInfo(unittest.TestCase): long name - + foo.rpm abcdef -- 2.7.4