| Newsgroups |
gmane.linux.rpm.metadata |
| Message-ID |
<[email protected]> |
createrepo/__init__.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit ca25f88474dfb9596141c7c99c21927f3ea42059
Author: Seth Vidal <[email protected]>
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
@@ -605,7 +605,7 @@ 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:
@@ -646,10 +646,11 @@ 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:
- self.callback.log('created drpm from %s to %s: %s' % (
- delta_p, pkg, drpmfn))
+ self.callback.log('created drpm from %s to %s: %s in %0.3f' % (
+ delta_p, pkg, drpmfn, (time.time() - dt_st)))
def _get_old_package_dict(self):
if hasattr(self, '_old_package_dict'):