self._insert_element(data, 'timestamp',
text=str(os.stat(destmd).st_mtime))
data.appendChild(self.doc.createTextNode("\n "))
+ self._insert_element(data, 'size',
+ text=str(os.stat(destmd).st_size))
+ data.appendChild(self.doc.createTextNode("\n "))
+ self._insert_element(data, 'open-size',
+ text=str(os.stat(metadata).st_size))
+ data.appendChild(self.doc.createTextNode("\n "))
self._insert_element(data, 'open-checksum',
attrs={ 'type' : self.checksum_type },
text=open_csum)
print " location =", 'repodata/' + mdname
print " checksum =", csum
print " timestamp =", str(os.stat(destmd).st_mtime)
+ print " size =", str(os.stat(destmd).st_size)
+ print " open-size =", str(os.stat(metadata).st_size)
print " open-checksum =", open_csum
## Write the updated repomd.xml