projects
/
tools
/
createrepo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7f5095
)
Add size to the repomd.xml output
author
James Antill
<james@and.org>
Fri, 8 Aug 2008 19:49:56 +0000
(15:49 -0400)
committer
James Antill
<james@and.org>
Fri, 8 Aug 2008 19:49:56 +0000
(15:49 -0400)
createrepo/__init__.py
patch
|
blob
|
history
diff --git
a/createrepo/__init__.py
b/createrepo/__init__.py
index 93d094a4abe37765738c5ec50dcb438dc44a0d86..e12ab232aba13e55b7de8137fddc6bdd5d3aa309 100644
(file)
--- a/
createrepo/__init__.py
+++ b/
createrepo/__init__.py
@@
-699,6
+699,8
@@
class MetaDataGenerator:
checksum = data.newChild(None, 'checksum', csum)
checksum.newProp('type', sumtype)
timestamp = data.newChild(None, 'timestamp', str(timestamp))
+ size = os.stat(os.path.join(repopath, file))
+ data.newChild(None, 'size', str(size.st_size))
unchecksum = data.newChild(None, 'open-checksum', uncsum)
unchecksum.newProp('type', sumtype)
location = data.newChild(None, 'location', None)