diff options
author | Ismael Luceno | 2016-10-17 16:14:51 -0200 |
---|---|---|
committer | Ismael Luceno | 2016-10-17 16:16:47 -0200 |
commit | 423760b8e0d503f5d5e49fb8a411e7e6cb14e364 (patch) | |
tree | a14f10f91b02158c8bf9630370227f206cabf414 | |
parent | 4668bcd70ba8af87da7349d3d684b34a4dbc64fa (diff) |
libdetails: Fix parsing non-prefixed version
-rw-r--r-- | var/lib/quill/modules/libdetails | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/var/lib/quill/modules/libdetails b/var/lib/quill/modules/libdetails index 3d483dc..517c948 100644 --- a/var/lib/quill/modules/libdetails +++ b/var/lib/quill/modules/libdetails @@ -130,6 +130,8 @@ function parse_spell_source_file_info(){ SPELL_SRC_FILE="${SPELL_SRC_URL##*/}" if expr "$SPELL_SRC_FILE" : 'v[0-9]\.' >/dev/null; then SPELL_VERSION=$(expr "$SPELL_SRC_FILE" : 'v\(.*\)\.[rtz]') + elif expr "$SPELL_SRC_FILE" : '[0-9]\.' >/dev/null; then + SPELL_VERSION=$(expr "$SPELL_SRC_FILE" : '\(.*\)\.[rtz]') else SPELL_VERSION=$(expr "$SPELL_SRC_FILE" : ".*[-_]\([0-9].*\)\.[rtz]") fi |