When populating the dvd/packages/ directory, create

a symlink to All/pkg-*.txz in the Latest/ directory.

This allows 'pkg bootstrap' to work out-of-box if
the REPOS_DIR environment is properly set.

Tested on:	stable/10@r271848
MFC after:	3 days
X-MFC-10.1:	yes
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2014-09-19 17:23:44 +00:00
parent dfdc97ae08
commit 83f0a683f4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271876

View File

@ -50,6 +50,12 @@ ${PKGCMD} -vv
${PKGCMD} update -f
${PKGCMD} fetch -o ${PKG_REPODIR} -d ${DVD_PACKAGES}
# Create the 'Latest/pkg.txz' symlink so 'pkg bootstrap' works
# using the on-disc packages.
mkdir -p ${PKG_REPODIR}/Latest
(cd ${PKG_REPODIR}/Latest && \
ln -s ../All/$(${PKGCMD} rquery %n-%v pkg).txz pkg.txz)
${PKGCMD} repo ${PKG_REPODIR}
# Always exit '0', even if pkg(8) complains about conflicts.