Seth Vidal | 3 Mar 16:59 2008

createrepo/__init__.py createrepo/yumbased.py

 createrepo/__init__.py |   18 ++++++++++++++----
 createrepo/yumbased.py |    2 ++
 2 files changed, 16 insertions(+), 4 deletions(-)

New commits:
commit 3af3197ed1b42c829f0d6fb8bff9503056eb45a0
Author: Seth Vidal <skvidal <at> fedoraproject.org>
Date:   Mon Mar 3 10:58:52 2008 -0500

    exclude rpmlib requires from metadata b/c they are silly
    store them in the repomd.xml per-repo so we have them if we ever actually need them

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index e91cf85..7c46346 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -104,7 +104,8  <at>  <at>  class MetaDataGenerator:
         self.ts = rpmUtils.transaction.initReadOnlyTransaction()
         self.pkgcount = 0
         self.files = []
-        
+        self.rpmlib_reqs = {}
+                
         if not self.conf.directory and not self.conf.directories:
             raise MDError, "No directory given on which to run."

 <at>  <at>  -394,9 +395,12  <at>  <at>  class MetaDataGenerator:
         po.crp_cachedir = self.conf.cachedir
         po.crp_baseurl = baseurl
         po.crp_reldir = reldir
(Continue reading)

Seth Vidal | 3 Mar 17:36 2008

createrepo/__init__.py

 createrepo/__init__.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 15e0968298fa2ad9ac974326bfc133ab88679e46
Author: Seth Vidal <skvidal <at> fedoraproject.org>
Date:   Mon Mar 3 11:35:47 2008 -0500

    better name for node

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 7c46346..4cf5311 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -683,7 +683,7  <at>  <at>  class MetaDataGenerator:
             self.addArbitraryMetadata(self.conf.groupfile, 'group', reporoot, compress=False)            

         if self.rpmlib_reqs:
-            rpmlib = reporoot.newChild(None, 'rpmlib_requirements', None)
+            rpmlib = reporoot.newChild(None, 'rpm:lib', None)
             for r in self.rpmlib_reqs.keys():
                 req  = rpmlib.newChild(None, 'requires', r)
Seth Vidal | 11 Mar 06:36 2008

createrepo/__init__.py createrepo/yumbased.py genpkgmetadata.py

 createrepo/__init__.py |  219 ++++++++++++++++++++++++++++++++++++++++---------
 createrepo/yumbased.py |  121 +++++++++++++++++++++++++--
 genpkgmetadata.py      |    2 
 3 files changed, 298 insertions(+), 44 deletions(-)

New commits:
commit f86997cbff3eb972ca971e99701a32fcae519672
Author: Seth Vidal <skvidal <at> fedoraproject.org>
Date:   Tue Mar 11 01:33:28 2008 -0400

    - partial patch to enable --database-only output from createrepo
    - still to implement filelists direct to sqlite, changelogs direct to sqlite
    - this check in is just a hedge against loss from my laptop, do not use the feature in this commit

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 4cf5311..4d5e470 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -21,13 +21,20  <at>  <at>  import fnmatch
 import time
 import yumbased
 import shutil
+from  bz2 import BZ2File
 from urlgrabber import grabber
 import tempfile

 from yum import misc, Errors
+from yum.sqlutils import executeSQL
+
 import rpmUtils.transaction
(Continue reading)

Seth Vidal | 11 Mar 21:21 2008

createrepo/__init__.py createrepo/utils.py createrepo/yumbased.py docs/createrepo.8

 createrepo/__init__.py |   12 +++++++++---
 createrepo/utils.py    |   12 ++++++++++++
 createrepo/yumbased.py |   47 ++++++++++++++++++++++++++++++++++++++++-------
 docs/createrepo.8      |    3 +++
 4 files changed, 64 insertions(+), 10 deletions(-)

New commits:
commit 6844035a77d6160493868b08b86ea9c7102deac4
Author: Seth Vidal <skvidal <at> fedoraproject.org>
Date:   Tue Mar 11 16:18:19 2008 -0400

    more or less complete createrepo --database-only

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 4d5e470..2a8b06a 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -827,7 +827,10  <at>  <at>  class MetaDataGenerator:
     def setup_sqlite_dbs(self, initdb=True):
         """sets up the sqlite dbs w/table schemas and db_infos"""
         destdir = os.path.join(self.conf.outputdir, self.conf.tempdir)
-        self.md_sqlite = MetaDataSqlite(destdir)
+        try:
+            self.md_sqlite = MetaDataSqlite(destdir)
+        except sqlite.OperationalError, e:
+            raise MDError, _('Cannot create sqlite databases: %s.\nMaybe you need to clean up a .repodata dir?') % e

     

 <at>  <at>  -947,7 +950,8  <at>  <at>  class MetaDataSqlite(object):
(Continue reading)

Seth Vidal | 11 Mar 22:20 2008

createrepo/__init__.py createrepo/utils.py

 createrepo/__init__.py |   12 +++++++++---
 createrepo/utils.py    |    4 ++--
 2 files changed, 11 insertions(+), 5 deletions(-)

New commits:
commit 0224a9123168f67103b0aa498695b5f8c6921cff
Author: Seth Vidal <skvidal <at> fedoraproject.org>
Date:   Tue Mar 11 17:17:16 2008 -0400

    a few tweaks to speed up the database creation

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 2a8b06a..1d539b3 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -907,8 +907,6  <at>  <at>  class SplitMetaDataGenerator(MetaDataGenerator):

 class MetaDataSqlite(object):
     def __init__(self, destdir):
-        #open the files up
-        #get the cursors - store them in self
         self.pri_sqlite_file = os.path.join(destdir, 'primary.sqlite')
         self.pri_cx = sqlite.Connection(self.pri_sqlite_file)
         self.file_sqlite_file = os.path.join(destdir, 'filelists.sqlite')
 <at>  <at>  -917,9 +915,11  <at>  <at>  class MetaDataSqlite(object):
         self.other_cx = sqlite.Connection(self.other_sqlite_file)

         self.primary_cursor = self.pri_cx.cursor()
+
         self.filelists_cursor = self.file_cx.cursor()
(Continue reading)


Gmane