xbps-src: make-repoidx failed for repos with only noarch pkgs.

This commit is contained in:
Juan RP 2011-06-28 16:02:08 +02:00
parent a2fea027f7
commit ecd20056c3
1 changed files with 2 additions and 0 deletions

View File

@ -402,6 +402,8 @@ make-repoidx)
fi
echo "=> Updating package index for local repository at"
echo " $XBPS_PACKAGESDIR..."
[ ! -d "$XBPS_PACKAGESDIR/$(uname -m)" ] && \
mkdir -p "$XBPS_PACKAGESDIR/$(uname -m)"
${XBPS_REPO_CMD} genindex ${XBPS_PACKAGESDIR} 2>/dev/null
[ $? -eq 0 ] && echo "=> done."
;;