summary refs log tree commit diff
path: root/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2018-02-27 07:42:29 +0100
committerMichael Raskin <7c6f434c@mail.ru>2018-02-27 07:43:50 +0100
commit19cc36d197182bf8bbbe8ad446072b2dfcd4f919 (patch)
tree99ede1b9ac1a8a5547a7ca71d6691fc79b4375c0 /pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py
parentaa321ab3c68ce31cf8855df6ada12d052a07d5f0 (diff)
downloadnixlib-19cc36d197182bf8bbbe8ad446072b2dfcd4f919.tar
nixlib-19cc36d197182bf8bbbe8ad446072b2dfcd4f919.tar.gz
nixlib-19cc36d197182bf8bbbe8ad446072b2dfcd4f919.tar.bz2
nixlib-19cc36d197182bf8bbbe8ad446072b2dfcd4f919.tar.lz
nixlib-19cc36d197182bf8bbbe8ad446072b2dfcd4f919.tar.xz
nixlib-19cc36d197182bf8bbbe8ad446072b2dfcd4f919.tar.zst
nixlib-19cc36d197182bf8bbbe8ad446072b2dfcd4f919.zip
libreoffice-still: 5.3.6.1 -> 5.4.5.1
Diffstat (limited to 'pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py')
-rwxr-xr-xpkgs/applications/office/libreoffice/generate-libreoffice-srcs.py9
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):
     """