aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2014-09-19 17:23:44 +0000
committerGlen Barber <gjb@FreeBSD.org>2014-09-19 17:23:44 +0000
commit83f0a683f475546d60d3cad8a991fbd88f4344e7 (patch)
treeb0fe197cc3f8280bf6fb19af3545d8a866da3541 /release
parentdfdc97ae082052407c67313c807dd34072077d94 (diff)
downloadsrc-83f0a683f475546d60d3cad8a991fbd88f4344e7.tar.gz
src-83f0a683f475546d60d3cad8a991fbd88f4344e7.zip
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
Notes
Notes: svn path=/head/; revision=271876
Diffstat (limited to 'release')
-rwxr-xr-xrelease/scripts/pkg-stage.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/pkg-stage.sh b/release/scripts/pkg-stage.sh
index 4a1ba19dc161..0b9963284d60 100755
--- a/release/scripts/pkg-stage.sh
+++ b/release/scripts/pkg-stage.sh
@@ -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.