mirror of
https://github.com/sbopkg/sbopkg
synced 2024-09-19 14:30:18 +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
|
Geremia
|
||||||
djunzu
|
djunzu
|
||||||
nobodino
|
nobodino
|
||||||
|
Benjamin Trigona-Harany
|
||||||
|
@ -712,7 +712,7 @@ check_for_updates() {
|
|||||||
local TEMPFILE=$SBOPKGTMP/sbopkg_updates_tempfile
|
local TEMPFILE=$SBOPKGTMP/sbopkg_updates_tempfile
|
||||||
local ERRORMSG=$SBOPKGTMP/sbopkg_updates_errormsg
|
local ERRORMSG=$SBOPKGTMP/sbopkg_updates_errormsg
|
||||||
local PROGRESSCOUNTER=0
|
local PROGRESSCOUNTER=0
|
||||||
local FIND_FLAGS="$REPO_DIR -mindepth 3 -maxdepth 3"
|
local FIND_FLAGS="-mindepth 3 -maxdepth 3"
|
||||||
local NEWSB NEWINFO NEWVER
|
local NEWSB NEWINFO NEWVER
|
||||||
local VERSION_EXPRESSION
|
local VERSION_EXPRESSION
|
||||||
local UPDATELIST VERSION_FILE PROGRESSBAR_INTERRUPTED
|
local UPDATELIST VERSION_FILE PROGRESSBAR_INTERRUPTED
|
||||||
@ -781,13 +781,13 @@ check_for_updates() {
|
|||||||
get_new_name NAME $OLDNAME
|
get_new_name NAME $OLDNAME
|
||||||
|
|
||||||
# Find the current SlackBuild
|
# 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
|
if [[ -z $NEWSB ]]; then
|
||||||
# Maybe we're running an old repository where the rename
|
# Maybe we're running an old repository where the rename
|
||||||
# didn't take place
|
# didn't take place
|
||||||
if [[ $NAME != $OLDNAME ]]; then
|
if [[ $NAME != $OLDNAME ]]; then
|
||||||
NAME=$OLDNAME
|
NAME=$OLDNAME
|
||||||
NEWSB=$(find $FIND_FLAGS -name $NAME.SlackBuild)
|
NEWSB=$(ls $REPO_DIR/*/$NAME/$NAME.SlackBuild 2> /dev/null)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
SBOPKG NEWS
|
SBOPKG NEWS
|
||||||
|
|
||||||
sbopkg-dev (2021-03-13 02:54:50 UTC)
|
sbopkg-dev (2021-05-18 18:32:02 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.
|
||||||
@ -34,6 +34,8 @@ sbopkg-dev (2021-03-13 02:54:50 UTC)
|
|||||||
Patch by Geremia (#62)
|
Patch by Geremia (#62)
|
||||||
* sbopkg: Faster clone on SBo-git configuration
|
* sbopkg: Faster clone on SBo-git configuration
|
||||||
Patch by djunzu (#67)
|
Patch by djunzu (#67)
|
||||||
|
* sbopkg: Checking for updates is now twice faster.
|
||||||
|
Patch by Benjamin Trigona-Harany (#68)
|
||||||
|
|
||||||
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