diff options
Diffstat (limited to 'app-office/libreoffice-l10n/files/lo_gen_langs.sh')
-rw-r--r-- | app-office/libreoffice-l10n/files/lo_gen_langs.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app-office/libreoffice-l10n/files/lo_gen_langs.sh b/app-office/libreoffice-l10n/files/lo_gen_langs.sh index baafa56cfe2b..57f71ce2405b 100644 --- a/app-office/libreoffice-l10n/files/lo_gen_langs.sh +++ b/app-office/libreoffice-l10n/files/lo_gen_langs.sh @@ -8,18 +8,18 @@ # VERSION=${1:-4.1.5} -BASE_SRC_URI="http://download.documentfoundation.org/libreoffice/stable/${VERSION}/rpm/x86" +BASE_SRC_URI="http://download.documentfoundation.org/libreoffice/stable/${VERSION}/rpm/x86_64" # needs lxml print_available_tarballs() { python << EOL -import sys, urllib +import sys, urllib.request from xml.dom.minidom import parseString -from BeautifulSoup import BeautifulSoup +from bs4 import BeautifulSoup + +with urllib.request.urlopen("${BASE_SRC_URI}") as url: + html = url.read() -opener = urllib.urlopen("${BASE_SRC_URI}") -html = opener.read() -opener.close() # broken html, try to sanitize html = BeautifulSoup(html).prettify() |