]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#766, !449] detect sysrepo version
authorRazvan Becheriu <razvan@isc.org>
Thu, 1 Aug 2019 08:48:55 +0000 (11:48 +0300)
committerRazvan Becheriu <razvan@isc.org>
Thu, 19 Sep 2019 11:56:57 +0000 (14:56 +0300)
tools/sysrepo_config

index fd28a86a468febb8848634e7e51b0249fd29773d..9f18b54111263bf9af2a689ee29afa7dffeeef08 100755 (executable)
@@ -78,10 +78,8 @@ if [ "$1" = "--libs" ]; then
 fi
 
 if [ "$1" = "--modversion" ]; then
-    MAJOR="1"
-    MINOR="0"
-    PATCH="0"
-    echo "${MAJOR}.${MINOR}.${PATCH}"
+    VERSION=`sysrepoctl -v | tr -s " " | cut -d " " -f 7`
+    echo "${VERSION}"
     exit 0
 fi