mirror of
https://github.com/sbopkg/sbopkg
synced 2024-09-19 14:30:18 +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
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user