diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index 9ef24dc..7ec6c17 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -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. diff --git a/tools/ChangeLog-latest.txt b/tools/ChangeLog-latest.txt index 1052e3d..62592f2 100644 --- a/tools/ChangeLog-latest.txt +++ b/tools/ChangeLog-latest.txt @@ -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