sbopkg: Checking for updates is now twice as fast.

Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
Benjamin Trigona-Harany 2021-05-17 19:08:07 +02:00 committed by Willy Sudiarto Raharjo
parent cf15ea5c75
commit 2472fd1fdd
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 7 additions and 4 deletions

View File

@ -101,3 +101,4 @@ We moved to github, so revision number no longer used
Geremia
djunzu
nobodino
Benjamin Trigona-Harany

View File

@ -712,7 +712,7 @@ check_for_updates() {
local TEMPFILE=$SBOPKGTMP/sbopkg_updates_tempfile
local ERRORMSG=$SBOPKGTMP/sbopkg_updates_errormsg
local PROGRESSCOUNTER=0
local FIND_FLAGS="$REPO_DIR -mindepth 3 -maxdepth 3"
local FIND_FLAGS="-mindepth 3 -maxdepth 3"
local NEWSB NEWINFO NEWVER
local VERSION_EXPRESSION
local UPDATELIST VERSION_FILE PROGRESSBAR_INTERRUPTED
@ -781,13 +781,13 @@ check_for_updates() {
get_new_name NAME $OLDNAME
# Find the current SlackBuild
NEWSB=$(find $FIND_FLAGS -name $NAME.SlackBuild)
NEWSB=$(ls $REPO_DIR/*/$NAME/$NAME.SlackBuild 2> /dev/null)
if [[ -z $NEWSB ]]; then
# Maybe we're running an old repository where the rename
# didn't take place
if [[ $NAME != $OLDNAME ]]; then
NAME=$OLDNAME
NEWSB=$(find $FIND_FLAGS -name $NAME.SlackBuild)
NEWSB=$(ls $REPO_DIR/*/$NAME/$NAME.SlackBuild 2> /dev/null)
fi
fi

View File

@ -1,6 +1,6 @@
SBOPKG NEWS
sbopkg-dev (2021-03-13 02:54:50 UTC)
sbopkg-dev (2021-05-18 18:32:02 UTC)
FEATURES
* sqg: Parallelize building of single and all packages by option -j.
Patch by Marcel Saegebarth.
@ -34,6 +34,8 @@ sbopkg-dev (2021-03-13 02:54:50 UTC)
Patch by Geremia (#62)
* sbopkg: Faster clone on SBo-git configuration
Patch by djunzu (#67)
* sbopkg: Checking for updates is now twice faster.
Patch by Benjamin Trigona-Harany (#68)
MODIFICATIONS
* bash-completion: Complete -i and -b when git repo is used