svn commit: r271943 - stable/10/release/scripts
Glen Barber
gjb at FreeBSD.org
Mon Sep 22 05:00:56 UTC 2014
Author: gjb
Date: Mon Sep 22 05:00:55 2014
New Revision: 271943
URL: http://svnweb.freebsd.org/changeset/base/271943
Log:
MFC r271876:
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.
Approved by: re (delphij)
Sponsored by: The FreeBSD Foundation
Modified:
stable/10/release/scripts/pkg-stage.sh
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/release/scripts/pkg-stage.sh
==============================================================================
--- stable/10/release/scripts/pkg-stage.sh Mon Sep 22 01:17:48 2014 (r271942)
+++ stable/10/release/scripts/pkg-stage.sh Mon Sep 22 05:00:55 2014 (r271943)
@@ -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.
More information about the svn-src-stable
mailing list