xbps-src: make -p work with the 'make-repoidx' target.

This commit is contained in:
Juan RP 2010-05-03 22:33:52 +02:00
parent 96c3b3db65
commit c0fb9c3805

View file

@ -288,6 +288,9 @@ list|listfiles)
list_pkg_files $2 list_pkg_files $2
;; ;;
make-repoidx) make-repoidx)
if [ -n "${_PACKAGEDIR}" ]; then
export XBPS_PACKAGESDIR=${_PACKAGEDIR}
fi
echo "=> Updating package index for local repository at" echo "=> Updating package index for local repository at"
echo " $XBPS_PACKAGESDIR..." echo " $XBPS_PACKAGESDIR..."
${XBPS_REPO_CMD} genindex ${XBPS_PACKAGESDIR} 2>/dev/null ${XBPS_REPO_CMD} genindex ${XBPS_PACKAGESDIR} 2>/dev/null