From 64ffa57daba24a553d8b95df63a95af4093f0822 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Wed, 7 Oct 2020 00:22:27 +0700 Subject: [PATCH] Faster clone on SBo-git repository. Fixed #67. Signed-off-by: Willy Sudiarto Raharjo --- src/usr/doc/THANKS | 1 + src/usr/sbin/sbopkg | 3 ++- tools/ChangeLog-latest.txt | 4 +++- tools/sbopkg-help | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/usr/doc/THANKS b/src/usr/doc/THANKS index 8a68573..9afbfe5 100644 --- a/src/usr/doc/THANKS +++ b/src/usr/doc/THANKS @@ -99,3 +99,4 @@ We moved to github, so revision number no longer used smallid pv4 Geremia + djunzu diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index ffe5e9f..7566a62 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -2460,6 +2460,7 @@ current_check_updates() { if [[ $REMOTE != $LOCAL ]]; then cd .. rm -fR $REPO_DIR + git clone --single-branch --branch current --depth 1 $URL $REPO_DIR fi } @@ -4651,7 +4652,7 @@ fi # Automatically determine the architecture we're building on: if [[ -z "$ARCH" ]]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) export ARCH=arm ;; # Unless $ARCH is already set, use uname -m for all other # archs: diff --git a/tools/ChangeLog-latest.txt b/tools/ChangeLog-latest.txt index 56b35c2..cc82ddc 100644 --- a/tools/ChangeLog-latest.txt +++ b/tools/ChangeLog-latest.txt @@ -1,6 +1,6 @@ SBOPKG NEWS -sbopkg-dev (2020-05-21 21:02:18 UTC) +sbopkg-dev (2020-10-07 17:19:37 UTC) FEATURES * sqg: Parallelize building of single and all packages by option -j. Patch by Marcel Saegebarth. @@ -32,6 +32,8 @@ sbopkg-dev (2020-05-21 21:02:18 UTC) Initial patch by arcctgx (#58) * sbopkg: Show new version in view queue in GUI Patch by Geremia (#62) + * sbopkg: Faster clone on SBo-git configuration + Patch by djunzu (#67) MODIFICATIONS * bash-completion: Complete -i and -b when git repo is used diff --git a/tools/sbopkg-help b/tools/sbopkg-help index 9a67c84..2080067 100644 --- a/tools/sbopkg-help +++ b/tools/sbopkg-help @@ -1,4 +1,4 @@ -sbopkg 0.38.1 +sbopkg 0.38.2 Usage: sbopkg [OPTIONS] Options are: -b pkg/queue(s) Build the specified package(s). If one or more queuefiles