From d934827bf44b7cfcf6711964418148fa60877668 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Nov 2020 22:39:15 +0000 Subject: gentoo resync : 25.11.2020 --- app-office/libreoffice-l10n/files/lo_gen_langs.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app-office/libreoffice-l10n/files') 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() -- cgit v1.2.3