#1465 için başlangıç kodu..

Şu anda index içerisinde paket büyüklüğünü saklıyoruz..
This commit is contained in:
A. Murat Eren
2006-03-17 13:32:38 +00:00
parent 29c2e63c45
commit 5d81fe5f24
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -97,6 +97,7 @@ class Index(XmlFile):
md = metadata.MetaData()
md.read(os.path.join(ctx.config.install_dir(), ctx.const.metadata_xml))
md.package.packageSize = os.path.getsize(path)
if ctx.config.options and ctx.config.options.absolute_uris:
# FIXME: the name "absolute_uris" does not seem to fit below :/
md.package.packageURI = os.path.realpath(path)
+1
View File
@@ -47,6 +47,7 @@ class Package(specfile.Package):
t_DistributionRelease = [ autoxml.String, autoxml.mandatory]
t_Architecture = [ autoxml.String, autoxml.mandatory]
t_InstalledSize = [ autoxml.Long, autoxml.mandatory]
t_PackageSize = [ autoxml.Long, autoxml.optional]
t_PackageURI = [ autoxml.String, autoxml.optional]
def decode_hook(self, node, errs, where):