summaryrefslogtreecommitdiff
path: root/app-office/libreoffice-l10n/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
commitd934827bf44b7cfcf6711964418148fa60877668 (patch)
tree0625f358789b5e015e49db139cc1dbc9be00428f /app-office/libreoffice-l10n/files
parent2e34d110f164bf74d55fced27fe0000201b3eec5 (diff)
gentoo resync : 25.11.2020
Diffstat (limited to 'app-office/libreoffice-l10n/files')
-rw-r--r--app-office/libreoffice-l10n/files/lo_gen_langs.sh12
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()