diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2018-02-27 07:42:29 +0100 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2018-02-27 07:43:50 +0100 |
commit | 19cc36d197182bf8bbbe8ad446072b2dfcd4f919 (patch) | |
tree | 99ede1b9ac1a8a5547a7ca71d6691fc79b4375c0 /pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py | |
parent | aa321ab3c68ce31cf8855df6ada12d052a07d5f0 (diff) |
libreoffice-still: 5.3.6.1 -> 5.4.5.1
Diffstat (limited to 'pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py')
-rwxr-xr-x | pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py b/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py index dcda0ff782dc..636f36cb383b 100755 --- a/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py +++ b/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py @@ -256,7 +256,7 @@ def interpret(x): Output: One of 1. Dict with keys 'name' and 'attrs' 2. 'unrecognized' (if interpretation failed) """ - for f in [interpret_md5, interpret_sha256, interpret_tarball_with_md5, interpret_tarball]: + for f in [interpret_md5, interpret_sha256, interpret_tarball_with_md5, interpret_tarball, interpret_jar]: result = f(x) if result is not None: return result @@ -296,6 +296,13 @@ def interpret_tarball(x): return {'name': match.group(1), 'attrs': {'tarball': x['value'], 'brief': True}} +def interpret_jar(x): + match = re.match('^(.*)_JAR$', x['key']) + + if match: + return {'name': match.group(1), + 'attrs': {'tarball': x['value'], 'brief': True}} + def interpret_tarball_with_md5(x): """ |