sbopkg: Fix detection for local repository.

Fixed #57.

Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
Willy Sudiarto Raharjo 2019-12-26 12:16:28 +07:00
parent c0dfa99f28
commit c702bb8aa0
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
2 changed files with 7 additions and 1 deletions

View File

@ -1086,8 +1086,12 @@ set_repo_vars() {
REPO_GPG=${REPOSITORIES[$((i + 6))]}
REPO_DIR=$REPO_ROOT/$REPO_NAME
# If the repository is updated using rsync / GIT
if [[ $REPO_TOOL = "rsync" || $REPO_TOOL = "git" ]]; then
checkout_${REPO_TOOL}_branch
# this is for local repository
elif [[ $REPO_TOOL = "" ]]; then
REPO_DIR=$REPO_ROOT/$REPO_NAME/$REPO_BRANCH
fi
# If the user specified a custom tag, use that one instead.

View File

@ -1,6 +1,6 @@
SBOPKG NEWS
sbopkg-dev (2019-11-10 09:16:13 UTC)
sbopkg-dev (2019-12-26 05:13:18 UTC)
FEATURES
* sqg: Parallelize building of single and all packages by option -j.
Patch by Marcel Saegebarth.
@ -28,6 +28,8 @@ sbopkg-dev (2019-11-10 09:16:13 UTC)
Feature Request by wronguser (#50).
* sbokg: Add better non-interactive/cron run support
Initial patch by smallid (#56).
* sbopkg: Add more detection to local repository
Initial patch by arcctgx (#58)
MODIFICATIONS
* bash-completion: Complete -i and -b when git repo is used