summaryrefslogtreecommitdiff
path: root/meta/packages/yum/createrepo-native
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 /meta/packages/yum/createrepo-native
parentfe22faba9909ad5f7ac226815bfd717947d0720b (diff)
downloadopenembedded-core-020a00ab51ac278567b584fd5ed939919d4930ce.tar.gz
openembedded-core-020a00ab51ac278567b584fd5ed939919d4930ce.tar.bz2
openembedded-core-020a00ab51ac278567b584fd5ed939919d4930ce.zip
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
Diffstat (limited to 'meta/packages/yum/createrepo-native')
-rw-r--r--meta/packages/yum/createrepo-native/fix.patch17
1 files changed, 17 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 @@
+---
+ createrepo/yumbased.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+Index: createrepo-0.9/createrepo/yumbased.py
+===================================================================
+--- createrepo-0.9.orig/createrepo/yumbased.py 2008-08-26 11:41:13.000000000 +0100
++++ createrepo-0.9/createrepo/yumbased.py 2008-08-26 11:37:01.000000000 +0100
+@@ -37,6 +37,8 @@ class CreateRepoPackage(YumLocalPackage)
+ self._hdrend = None
+
+ def _xml(self, item):
++ if item == []:
++ return []
+ return xml.sax.saxutils.escape(item)
+
+ def _do_checksum(self):