summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-08-26 10:59:38 +0000
committerRichard Purdie <richard@openedhand.com>2008-08-26 10:59:38 +0000
commit020a00ab51ac278567b584fd5ed939919d4930ce (patch)
treeab7c76ad12d771333632476cf98dcd3c811127ab
parentfe22faba9909ad5f7ac226815bfd717947d0720b (diff)
downloadpoky-020a00ab51ac278567b584fd5ed939919d4930ce.tar.gz
createrepo-native: Add fix for empty data fields when creating repositories
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5108 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/packages/yum/createrepo-native/fix.patch17
-rw-r--r--meta/packages/yum/createrepo-native_0.9.bb2
2 files changed, 19 insertions, 0 deletions
diff --git a/meta/packages/yum/createrepo-native/fix.patch b/meta/packages/yum/createrepo-native/fix.patch
new file mode 100644
index 0000000000..4fe58e379d
--- /dev/null
+++ b/meta/packages/yum/createrepo-native/fix.patch
@@ -0,0 +1,17 @@
1---
2 createrepo/yumbased.py | 2 ++
3 1 file changed, 2 insertions(+)
4
5Index: createrepo-0.9/createrepo/yumbased.py
6===================================================================
7--- createrepo-0.9.orig/createrepo/yumbased.py 2008-08-26 11:41:13.000000000 +0100
8+++ createrepo-0.9/createrepo/yumbased.py 2008-08-26 11:37:01.000000000 +0100
9@@ -37,6 +37,8 @@ class CreateRepoPackage(YumLocalPackage)
10 self._hdrend = None
11
12 def _xml(self, item):
13+ if item == []:
14+ return []
15 return xml.sax.saxutils.escape(item)
16
17 def _do_checksum(self):
diff --git a/meta/packages/yum/createrepo-native_0.9.bb b/meta/packages/yum/createrepo-native_0.9.bb
index e682667c51..22b50331b5 100644
--- a/meta/packages/yum/createrepo-native_0.9.bb
+++ b/meta/packages/yum/createrepo-native_0.9.bb
@@ -1,5 +1,7 @@
1SRC_URI = "http://linux.duke.edu/projects/metadata/generate/createrepo-${PV}.tar.gz \ 1SRC_URI = "http://linux.duke.edu/projects/metadata/generate/createrepo-${PV}.tar.gz \
2 file://fix.patch;patch=1 \
2 file://pathfix.patch;patch=1 " 3 file://pathfix.patch;patch=1 "
4PR = "r1"
3 5
4inherit autotools native 6inherit autotools native
5 7