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

@ -94,4 +94,5 @@ We moved to github, so revision number no longer used
Erich Ritz Erich Ritz
arcctgx arcctgx
orbea orbea
GregT GregT
Yaroslav Shmelev

View File

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

View File

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