From d4d279991a8cde3b73b5f6e187ed948995f2681b Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 19 Mar 2022 22:48:54 +0100 Subject: [PATCH] Correzione allo script di build. --- build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 23a1a69..5d37b80 100644 --- a/build.py +++ b/build.py @@ -4,8 +4,8 @@ import urllib.request from lxml import etree import tempfile, os, sys, subprocess, shutil -class Build(): - LANGSTD = ['ar', 'de', 'en-GB', 'es', 'fr', 'it', 'ja', 'ko', 'pt', 'pt-BR', 'ru', 'zh-CN', 'zh-TW'] +class Build(object): + LANGSTD = [ 'ar', 'de', 'en-GB', 'es', 'fr', 'it', 'ja', 'ko', 'pt', 'pt-BR', 'ru', 'zh-CN', 'zh-TW' ] def __init__(self, query, arch, url): """Build all versions that can be found in the indicated repo.""" @@ -61,7 +61,7 @@ class Build(): # Let's process standard languages and append results to the # buildtarball - for lang in LANGSTD: + for lang in Build.LANGSTD: buildtarballs.extend([ x for x in self.__tarballs__ if ('langpack_' + lang) in x ]) # If it was a build with offline help, another extend would have # solved it: