[Blends-commit] [SCM] website branch, master, updated. 0a49aec4c9afe52582e9c2a47f48675bcb58c641

Andreas Tille tille at debian.org
Fri Feb 5 12:59:10 UTC 2016


The following commit has been merged in the master branch:
commit 0a49aec4c9afe52582e9c2a47f48675bcb58c641
Author: Andreas Tille <tille at debian.org>
Date:   Fri Feb 5 13:59:01 2016 +0100

    STrip down version

diff --git a/misc/sql/edam.sh b/misc/sql/edam.sh
index 16b0ba2..4f5d602 100755
--- a/misc/sql/edam.sh
+++ b/misc/sql/edam.sh
@@ -1,9 +1,6 @@
 #!/bin/sh
 # Create a dataset for EDAM
 #
-# FIXME:
-#       - strip versions to upstream versions
-#       - strip "interface::" from interface
 
 PORT="-p 5452"
 
@@ -37,7 +34,8 @@ $JSONBEGIN
 -- SELECT source, array_agg(package) as packages, distribution, release, component, version, homepage FROM
 -- (
   SELECT DISTINCT
-         p.package, p.distribution, p.release, p.component, p.version,
+         p.package, p.distribution, p.release, p.component,
+         regexp_replace(regexp_replace(regexp_replace(p.version, '-[.\d]+$', ''), '\+dfsg.*$', '') , '\+lgpl.*$', '') AS version, -- strip Debian revision
          p.source, p.homepage,
           en.description AS description, en.long_description AS long_description,
           interface.tags AS interface, biology.tags AS biology, field.tags AS fields

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list