mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 11:40:26 +03:00
sbopkg: Show version when using -g in command line.
Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
parent
d49e2984c2
commit
1bba4609d7
@ -95,3 +95,4 @@ We moved to github, so revision number no longer used
|
||||
arcctgx
|
||||
orbea
|
||||
GregT
|
||||
Yaroslav Shmelev
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user