xbps-src: s/git/chroot-git/g

This commit is contained in:
Juan RP 2014-07-27 16:29:18 +02:00
parent 67206a5e26
commit af6ee5374e
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ hook() {
fi fi
cd $XBPS_SRCPKGDIR cd $XBPS_SRCPKGDIR
rev="$(git rev-parse --short HEAD)" rev="$(chroot-git rev-parse --short HEAD)"
echo "${sourcepkg}:${rev}" echo "${sourcepkg}:${rev}"
echo "${sourcepkg}:${rev}" > $GITREVS_FILE echo "${sourcepkg}:${rev}" > $GITREVS_FILE
} }

View File

@ -221,7 +221,7 @@ check_build_requirements() {
if [ -z "$XBPS_ALT_REPOSITORY" ]; then if [ -z "$XBPS_ALT_REPOSITORY" ]; then
pushd "$PWD" &>/dev/null pushd "$PWD" &>/dev/null
cd $XBPS_DISTDIR cd $XBPS_DISTDIR
_gitbranch="$(git symbolic-ref --short HEAD 2>/dev/null)" _gitbranch="$(chroot-git symbolic-ref --short HEAD 2>/dev/null)"
if [ -n "${_gitbranch}" -a "${_gitbranch}" != "master" ]; then if [ -n "${_gitbranch}" -a "${_gitbranch}" != "master" ]; then
export XBPS_ALT_REPOSITORY="${_gitbranch}" export XBPS_ALT_REPOSITORY="${_gitbranch}"
export XBPS_REPOSITORY="${XBPS_REPOSITORY}/${_gitbranch}" export XBPS_REPOSITORY="${XBPS_REPOSITORY}/${_gitbranch}"