skvidal | 16 Jun 21:34 2009

createrepo/__init__.py

 createrepo/__init__.py |   30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)

New commits:
commit 3f793c0cf10c6352e5449976123afadd4c11c4bb
Author: Seth Vidal <skvidal <at> fedoraproject.org>
Date:   Tue Jun 16 15:24:03 2009 -0400

    - prestodelta.xml file generation is now roughly 60X faster than it was before
      - python unicode string concatenation sucks, a lot.
    - add a delta xml generation profile output
    - get rid of some incorrect output about db files and delta metadata
    - get rid of some old not-useful comments in the code

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 36bb350..92f6fe4 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -256,7 +256,6  <at>  <at>  class MetaDataGenerator:
             name = os.path.join(top, name)
             if os.path.isdir(name):
                 self._os_path_walk(name, func, arg)
-    # module
     def getFileList(self, directory, ext):
         """Return all files in path matching ext, store them in filelist,
         recurse dirs. Returns a list object"""
 <at>  <at>  -364,7 +363,6  <at>  <at>  class MetaDataGenerator:
         self.writeMetadataDocs(packages)
         self.closeMetadataDocs()

(Continue reading)

skvidal | 17 Jun 18:07 2009

createrepo/__init__.py

 createrepo/__init__.py |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit ca25f88474dfb9596141c7c99c21927f3ea42059
Author: Seth Vidal <skvidal <at> fedoraproject.org>
Date:   Wed Jun 17 12:05:15 2009 -0400

    output how long it took to make the drpm file

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 92f6fe4..ed1727a 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -605,7 +605,7  <at>  <at>  class MetaDataGenerator:
         """makes the drpms, if possible, for this package object.
            returns the presto/delta xml metadata as a string
         """
-        
+
         # duck and cover if the pkg.size is > whatever
         if int(pkg.size) > self.conf.max_delta_rpm_size:
             if not self.conf.quiet: 
 <at>  <at>  -646,10 +646,11  <at>  <at>  class MetaDataGenerator:

             for delta_p in candidates[0:self.conf.num_deltas]:
                 #make drpm of pkg and delta_p
+                dt_st = time.time()
                 drpmfn = deltarpms.create_drpm(delta_p, pkg, self.conf.deltadir)
                 if not self.conf.quiet:
(Continue reading)

skvidal | 17 Jun 18:46 2009

createrepo/__init__.py

 createrepo/__init__.py |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

New commits:
commit b350306ee9a7da6973b96f4a85239408268c3ca7
Author: Seth Vidal <skvidal <at> fedoraproject.org>
Date:   Wed Jun 17 12:44:39 2009 -0400

    more/better output about makedeltarpm timing

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index ed1727a..2a8762c 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -74,7 +74,7  <at>  <at>  class MetaDataConfig(object):
         self.oldpackage_paths = [] # where to look for the old packages - 
         self.deltafile = 'prestodelta.xml.gz'
         self.num_deltas = 1 # number of older versions to delta (max)
-        self.max_delta_rpm_size = 100000000
+        self.max_delta_rpm_size = 1000000000
         self.update_md_path = None 
         self.skip_stat = False
         self.database = False
 <at>  <at>  -605,7 +605,7  <at>  <at>  class MetaDataGenerator:
         """makes the drpms, if possible, for this package object.
            returns the presto/delta xml metadata as a string
         """
-
+        drpm_pkg_time = time.time()
         # duck and cover if the pkg.size is > whatever
(Continue reading)

skvidal | 17 Jun 19:29 2009

createrepo/__init__.py

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

New commits:
commit dfc09aa3e7c27a6a071ba2b0f14b271dadeaf60f
Author: Seth Vidal <skvidal <at> fedoraproject.org>
Date:   Wed Jun 17 13:27:20 2009 -0400

    remove extra 0 from max_delta_rpm_size

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 2a8762c..233fa1c 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -74,7 +74,7  <at>  <at>  class MetaDataConfig(object):
         self.oldpackage_paths = [] # where to look for the old packages - 
         self.deltafile = 'prestodelta.xml.gz'
         self.num_deltas = 1 # number of older versions to delta (max)
-        self.max_delta_rpm_size = 1000000000
+        self.max_delta_rpm_size = 100000000
         self.update_md_path = None 
         self.skip_stat = False
         self.database = False

Gmane