From 77bd484d8c36105f715cf82b30f607c7329abc79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 3 Nov 2005 02:03:41 +0000 Subject: [PATCH] * installed size is integer --- pisi/build.py | 4 ++-- pisi/xmlfile.py | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pisi/build.py b/pisi/build.py index baf80ebb..aa459806 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -343,8 +343,8 @@ class Builder: for path in package.files: size += util.dir_size(util.join_path(d, path.path)) - metadata.package.installedSize = str(size) - + metadata.package.installedSize = int(size) # should be enough for everyone! + # mwahahah! FIXME: really? # build no if ctx.config.options.ignore_build_no: metadata.package.build = None # means, build no information n/a diff --git a/pisi/xmlfile.py b/pisi/xmlfile.py index b7e3914c..60bce4d0 100644 --- a/pisi/xmlfile.py +++ b/pisi/xmlfile.py @@ -63,6 +63,8 @@ mandatory, optional = range(2) # poor man's enum String = types.StringType Text = types.UnicodeType Integer = types.IntType +Long = types.LongType +Float = types.FloatType #class datatype(type): # def __init__(cls, name, bases, dict): @@ -726,7 +728,9 @@ class autoxml(oo.autosuper, oo.autoprop): basic_cons_map = { types.StringType : str, types.UnicodeType : unicode, - types.IntType : int + types.IntType : int, + types.FloatType : float, + types.LongType : long }