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)