From c0fb9c38053793ce2deb4007e682166f16e00fe5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 3 May 2010 22:33:52 +0200 Subject: [PATCH] xbps-src: make -p work with the 'make-repoidx' target. --- xbps-src/xbps-src.sh.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xbps-src/xbps-src.sh.in b/xbps-src/xbps-src.sh.in index 633fdc8ccd..cd8543883e 100644 --- a/xbps-src/xbps-src.sh.in +++ b/xbps-src/xbps-src.sh.in @@ -288,6 +288,9 @@ list|listfiles) list_pkg_files $2 ;; make-repoidx) + if [ -n "${_PACKAGEDIR}" ]; then + export XBPS_PACKAGESDIR=${_PACKAGEDIR} + fi echo "=> Updating package index for local repository at" echo " $XBPS_PACKAGESDIR..." ${XBPS_REPO_CMD} genindex ${XBPS_PACKAGESDIR} 2>/dev/null