sbopkg / sbopkg

Slackbuilds.org Package Browser
https://sbopkg.org/
Other
122 stars 45 forks source link

sbopkg: Correct setting REPO_DIR variable for local repos #58

Closed arcctgx closed 4 years ago

arcctgx commented 4 years ago

This is a fix for issue #57. Or at least my suggestion how to handle it.

set_repo_vars() is setting REPO_DIR=$REPO_ROOT/$REPO_NAME instead of REPO_DIR=$REPO_ROOT/$REPO_NAME/$REPO_BRANCH. The branch suffix is not needed if REPO_TOOL is git. It is required when REPO_TOOL is rsync, and in that case it is added by checkout_rsync_branch() function. The branch suffix is also required when REPO_TOOL is unset, but in that case it wasn't added anywhere.

willysr commented 4 years ago

i would add elif [[ $REPO_TOOL = "" ]]; then

willysr commented 4 years ago

merged with c702bb8aa0902e3340b5d8c19be1798553e1a0b9