7 Oct 2010 22:43
2 commits - createrepo/__init__.py modifyrepo.py
<skvidal <at> osuosl.org>
2010-10-07 20:43:18 GMT
2010-10-07 20:43:18 GMT
createrepo/__init__.py | 185 +++++++++++++++++++------------------------------
modifyrepo.py | 3
2 files changed, 75 insertions(+), 113 deletions(-)
New commits:
commit 02f4ceccb35e9457fd74776270925b155c7739ce
Author: Seth Vidal <skvidal <at> fedoraproject.org>
Date: Thu Oct 7 16:42:37 2010 -0400
make createrepo use the repomd/repodata mechanism from yum for making a repomd.xml which
simplifies the code dramatically since we don't have to mess with xml in here.
diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index a2ae8b0..13dc115 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
<at> <at> -29,6 +29,7 <at> <at> import fcntl
import subprocess
from yum import misc, Errors, to_unicode
+from yum.repoMDObject import RepoMD, RepoMDError, RepoData
from yum.sqlutils import executeSQL
from yum.packageSack import MetaSack
from yum.packages import YumAvailablePackage, YumLocalPackage
<at> <at> -831,13 +832,11 <at> <at> class MetaDataGenerator:
return ' '.join(results)
- def addArbitraryMetadata(self, mdfile, mdtype, xml_node, compress=True,
- compress_type='gzip', attribs={}):
(Continue reading)
RSS Feed