*Size variables should be long.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2009-11-22 Bahadır Kandemir <bahadir@pardus.org.tr>
|
||||
* pisi/operations/build.py, pisi/index.py: *Size variables should be
|
||||
long, instead of int.
|
||||
|
||||
2009-11-09 Faik Uygur <faik@pardus.org.tr>
|
||||
* pisi/actionsapi/perlmodules.py: KeepSpecial should control pod file removal.
|
||||
Remove .packlist files from perl packages.
|
||||
|
||||
+2
-2
@@ -118,7 +118,7 @@ class Index(xmlfile.XmlFile):
|
||||
def add_package(self, path, deltas, repo_uri):
|
||||
package = pisi.package.Package(path, 'r')
|
||||
md = package.get_metadata()
|
||||
md.package.packageSize = os.path.getsize(path)
|
||||
md.package.packageSize = long(os.path.getsize(path))
|
||||
md.package.packageHash = util.sha1_file(path)
|
||||
if ctx.config.options and ctx.config.options.absolute_urls:
|
||||
md.package.packageURI = os.path.realpath(path)
|
||||
@@ -140,7 +140,7 @@ class Index(xmlfile.XmlFile):
|
||||
for delta_path in deltas[md.package.name]:
|
||||
delta = metadata.Delta()
|
||||
delta.packageURI = util.removepathprefix(repo_uri, delta_path)
|
||||
delta.packageSize = os.path.getsize(delta_path)
|
||||
delta.packageSize = long(os.path.getsize(delta_path))
|
||||
delta.packageHash = util.sha1_file(delta_path)
|
||||
name, buildFrom, buildTo = util.parse_delta_package_name(delta_path)
|
||||
delta.buildFrom = buildFrom
|
||||
|
||||
@@ -676,7 +676,7 @@ class Builder:
|
||||
for fileinfo in self.files.list:
|
||||
size += fileinfo.size
|
||||
|
||||
metadata.package.installedSize = size
|
||||
metadata.package.installedSize = long(size)
|
||||
|
||||
self.metadata = metadata
|
||||
|
||||
@@ -712,7 +712,7 @@ class Builder:
|
||||
continue
|
||||
frpath = pisi.util.removepathprefix(install_dir, fpath) # relative path
|
||||
ftype, permanent = get_file_type(frpath, package.files, install_dir)
|
||||
fsize = pisi.util.dir_size(fpath)
|
||||
fsize = long(pisi.util.dir_size(fpath))
|
||||
if not os.path.islink(fpath):
|
||||
st = os.stat(fpath)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user