From a8bb0557ad3926a7d39edd326fc95b3947cc528a Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 6 Dec 2022 17:17:36 +0200 Subject: [PATCH] Fixed installation scripts Signed-off-by: Dimitris Zlatanidis --- install.sh | 3 +-- slackbuild/slpkg.SlackBuild | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 35b967b6..270c1156 100755 --- a/install.sh +++ b/install.sh @@ -24,8 +24,7 @@ __version() { # Grab version from __metadata_.py file -cat slpkg/views/version.py | grep "version_info: tuple = (" \ - | tr -d [[:space:]] | cut -c21-25 | tr , . +cat setup.cfg | grep "version =" | tr -d [[:space:]] | cut -c9-13 | tr , . } PRGNAM=slpkg diff --git a/slackbuild/slpkg.SlackBuild b/slackbuild/slpkg.SlackBuild index 7384839e..d5ce5569 100755 --- a/slackbuild/slpkg.SlackBuild +++ b/slackbuild/slpkg.SlackBuild @@ -24,8 +24,7 @@ __version() { # Grab version from __metadata_.py file -cat ../slpkg/views/version.py | grep "version_info: tuple = (" \ - | tr -d [[:space:]] | cut -c21-25 | tr , . +cat ../setup.cfg | grep "version =" | tr -d [[:space:]] | cut -c9-13 | tr , . } cd $(dirname $0) ; CWD=$(pwd)