sbopkg: Show version when using -g in command line.

Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
Yaroslav Shmelev 2018-05-28 06:39:45 +07:00 committed by Willy Sudiarto Raharjo
parent d49e2984c2
commit 1bba4609d7
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
3 changed files with 11 additions and 5 deletions

View File

@ -95,3 +95,4 @@ We moved to github, so revision number no longer used
arcctgx
orbea
GregT
Yaroslav Shmelev

View File

@ -2537,9 +2537,10 @@ gen_search_package() {
local ITEM_SELECTION=$SBOPKGTMP/sbopkg_item_selection
local SEARCH_CHOICE=$SBOPKGTMP/sbopkg_search_choice
local SEARCH_RESULTS=$SBOPKGTMP/sbopkg_search_results
local RESULTS_VERSIONS=$SBOPKGTMP/sbopkg_search_results_versions
local RESULTS=$(find -mindepth 2 -maxdepth 2 -type d \
-iwholename "./$CATEGORY/*$PKG*" -printf "%P\n" | sort)
local NAME DESC CHOICE
local NAME DESC CHOICE RESULT_VERSION
local SRCHPICK SRCHCAT SRCHPKG
if [[ $RESULTS ]]; then
@ -2595,9 +2596,12 @@ gen_search_package() {
done
else
echo "Found the following matches for $PKG:"
echo -e "NAME\tVERSION" >> $RESULTS_VERSIONS
for i in $RESULTS; do
echo $i
RESULT_VERSION=$(grep ^VERSION $(find $i -name *.info) | cut -d= -f2 | tr -d \")
echo -e "$i\t$RESULT_VERSION" >> $RESULTS_VERSIONS
done
column -t $RESULTS_VERSIONS
fi
else
if [[ $DIAG ]]; then

View File

@ -1,6 +1,6 @@
SBOPKG NEWS
sbopkg-dev (2018-05-22 11:50:50 UTC)
sbopkg-dev (2018-05-27 23:38:40 UTC)
FEATURES
* sqg: Parallelize building of single and all packages by option -j.
Patch by Marcel Saegebarth.
@ -20,7 +20,8 @@ sbopkg-dev (2018-05-22 11:50:50 UTC)
* sbopkg: Added new option in sbopkg.conf: BLACKLISTFILE
This is used to define blacklisted package(s)
Feature Request by khronosschoty
* sbopkg: Show version when using -g in command line
Patch by Yaroslav Shmelev.
MODIFICATIONS
* bash-completion: Complete -i and -b when git repo is used