Trovato forse problema: passaggio di arch.
This commit is contained in:
parent
daff0535d3
commit
0df231e450
2 changed files with 16 additions and 20 deletions
|
@ -20,26 +20,25 @@ def build(arch, language, offline, portable, updatable, download, storage, check
|
|||
# We need to build it twice.
|
||||
arches = [ u'x86', u'x86_64' ]
|
||||
else:
|
||||
arches = [ arch.lower() ]
|
||||
arches = [ arch.lower().decode('utf-8') ]
|
||||
|
||||
for arch in arches:
|
||||
obj = loaih.Build(query, arch)
|
||||
obj = loaih.Build(query, arches)
|
||||
|
||||
obj.language = language
|
||||
obj.offline_help = offline
|
||||
obj.portable = portable
|
||||
obj.updatable = updatable
|
||||
obj.language = language
|
||||
obj.offline_help = offline
|
||||
obj.portable = portable
|
||||
obj.updatable = updatable
|
||||
|
||||
if check:
|
||||
obj.check(storage)
|
||||
else:
|
||||
obj.storage_path = storage
|
||||
if check:
|
||||
obj.check(storage)
|
||||
else:
|
||||
obj.storage_path = storage
|
||||
|
||||
obj.download(download)
|
||||
obj.build()
|
||||
obj.checksums()
|
||||
obj.move()
|
||||
del obj
|
||||
obj.download(download)
|
||||
obj.build()
|
||||
obj.checksums()
|
||||
obj.move()
|
||||
del obj
|
||||
|
||||
if __name__ == '__main__':
|
||||
build()
|
||||
|
|
Reference in a new issue