mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 11:40:26 +03:00
sbopkg: Checking for updates is now twice as fast.
Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
parent
cf15ea5c75
commit
2472fd1fdd
@ -101,3 +101,4 @@ We moved to github, so revision number no longer used
|
||||
Geremia
|
||||
djunzu
|
||||
nobodino
|
||||
Benjamin Trigona-Harany
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user