From: James Antill Date: Fri, 8 Aug 2008 19:49:56 +0000 (-0400) Subject: Add size to the repomd.xml output X-Git-Tag: upstream/0.9.9~55^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96216298d90d4e79d46fabae8433611d5f70cf67;p=tools%2Fcreaterepo.git Add size to the repomd.xml output --- diff --git a/createrepo/__init__.py b/createrepo/__init__.py index 93d094a..e12ab23 100644 --- 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)